Universal Shift Calendar
A flexible visual planner for recurring shift patterns (e.g., 2-2-3, DuPont, 4-on-4-off). Generate, customize, and export schedules for up to 2 years.
About
Managing life around non-standard work hours requires precision. Shift workers often struggle to predict whether a specific date months in the future falls on a work day or a rest day. Traditional calendar apps assume a weekly 5-2 cycle, failing to accommodate complex rotations like the Panama schedule, DuPont shift, or simple 4-on-4-off patterns. This tool solves the planning gap by projecting custom cyclic patterns onto a standard Gregorian calendar.
Accuracy in forward planning prevents scheduling conflicts for medical appointments, family events, or vacations. By defining a specific rotation sequence and a reference start date, the system uses modular arithmetic to mathematically determine the status of any future date. This allows for long-term visualization without the need for manual entry of repeating events.
Formulas
The core logic uses modular arithmetic to map linear time to a repeating cycle. The position P within the cycle for any given target date Dtarget is calculated relative to a reference start date Dstart.
Where L is the total length of the shift pattern sequence. If the result is negative (backward projection), adjustments are made to align with the cycle modulus. The specific shift type assigned to the date corresponds to the element at index P in the defined pattern array.
Reference Data
| Pattern Name | Cycle Length (Days) | Description | Typical Rotation |
|---|---|---|---|
| Panama (2-2-3) | 14 | Slow rotation allows for every other weekend off. | 2 On, 2 Off, 3 On, 2 Off, 2 On, 3 Off |
| DuPont | 28 | Includes a 7-day break but requires 12-hour shifts. | 4 Nights, 3 Off, 3 Days, 1 Off, 3 Nights, 3 Off, 4 Days, 7 Off |
| 4 On, 4 Off | 8 | Consistent ratio, rotates through all days of the week. | 4 Days (12h), 4 Days Off |
| Pitman (Fixed) | 14 | Fixed days, employees work the same days every two weeks. | 2 On, 2 Off, 3 On, 2 Off, 2 On, 3 Off |
| Continental | 7 | Fast rotation, changes shifts weekly. | 2 Days, 2 Swings, 3 Nights, 2 Off, 2 Days, 3 Swings, 2 Nights, 3 Off |
| Kelly Schedule | 9 | Used often by firefighters. 24-hour shifts. | 1 On, 1 Off, 1 On, 1 Off, 1 On, 4 Off |
| 5-5-4 | 14 | Common in law enforcement. | 5 On, 5 Off, 4 On, 4 Off |
| Standard 5-2 | 7 | Typical office schedule. | 5 Days Work, 2 Days Off |
| 9/80 Schedule | 14 | 80 hours in 9 days. | 9 Days On (various hours), 1 Day Off every 2 weeks |