Feature: Rotate every few days or monthly, with free elements
Description
A working-time rotation has a cadence: weekly (every element lasts seven days and switches on the weekday of the
anchor date, so a night team can switch on Sundays), every (every element lasts step days) or
monthly (every element lasts until the next switch, 1 to 31 or last; a month without that
day switches on its last day). An element may be free, without a model; its days have no planned shift. The element
of a date is counted in whole steps from the anchor date, so a rotation that started in the past is right without
any job, and December needs no special case. rotation now counts elements, and a rotation's working
days per week count a free element as none.
Impact
The pattern of create and update is now elements instead of
weeks, and the anchor date of a weekly rotation no longer has to be a Monday. Existing rotations are weekly.
New columns working_, step_ and switch_.