Rotating schedules repeat cyclically over a fixed period of \(L\) days. To determine the shift for any arbitrary date in the future or past, the calculator computes the elapsed day count from the cycle anchor date and applies modulo arithmetic:
// Shift Rotation Modulo Math
Elapsed Days = Floor((Target Date − Anchor Date) / 86,400,000 ms)
Cycle Index = ((Elapsed Days % Cycle Length) + Cycle Length) % Cycle Length
Shift Result = Pattern String [Cycle Index]
// Example: Pitman 14-Day Cycle (D,D,O,O,D,D,D,O,O,D,D,O,O,O)
If Elapsed Days = 45 days: 45 % 14 = 3 → Index 3 is 'O' (Off Duty)
Pitman 2-2-3 (14 Days)
Emergency Services & Police
Pattern: 2 on, 2 off, 3 on, 2 off, 2 on, 3 off. Officers work only 7 out of 14 days and get a 3-day weekend off every other week without burning paid leave.
DuPont 12-Hour (28 Days)
Power Plants & Refineries
Pattern: 4 nights, 3 off, 3 days, 1 off, 3 nights, 3 off, 4 days, then 7 consecutive days off. Provides 24/7 industrial coverage with regular week-long breaks.
4-On / 4-Off (8 Days)
Healthcare & Manufacturing
Pattern: 2 Day shifts, 2 Night shifts, 4 Days Off. A predictable 8-day rolling rhythm yielding exactly 182 working days per year with 50% rest days.