Anyone who has written an on-call rotation knows the moment when a schedule that looked tidy in a spreadsheet meets a real calendar. A rotation has its own period. The week has a period of seven. Unless one divides the other, the two drift against each other, and the people on the rotation spend their lives answering "are you free Saturday?" with "let me check".
The one-line calculation
How long until a rotation puts you on the same weekdays again? Take the least common multiple of the cycle length and seven.
from math import lcm
cycles = {"24/48": 3, "48/96": 6, "4/10": 7, "4 on, 4 off": 8,
"Kelly": 9, "Panama 2-2-3": 14, "5-5-4": 15, "DuPont": 28}
for name, days in cycles.items():
print(f"{name:14} cycle {days:2}d realigns every {lcm(days, 7)}d")
That gives 21 days for 24/48, 42 for 48/96, 7 for 4/10, 56 for four on four off, 63 for Kelly, 14 for Panama, 105 for 5-5-4 and 28 for DuPont. A four-on, four-off pattern needs eight weeks before the picture repeats. The 5-5-4 needs fifteen weeks. Nobody holds that in their head.
Why weekly availability settings break
Most booking tools ask which hours you are free from Monday to Sunday and then repeat the answer forever. That is a data model, not just a settings screen. If your cycle is eight days, "free Tuesday evening" is true for some Tuesdays and false for others, and there is no value you can enter that is correct for all of them. The usual workaround is to block individual days by hand, which works until you get tired of doing it.
If you run an internal tool that stores availability, the lesson is to store dated intervals, or a cycle length plus an anchor date, rather than a weekday mask. The anchor matters as much as the length: two crews on the identical pattern with start dates four days apart have completely different lives.
Two people, two periods
When two people on different rotations try to meet, the combined pattern repeats every lcm of both cycles. Eight and nine give 72 days. You can compute that, but for planning dinner it is easier to pick a stretch of real dates and let each person mark only what they know is free.
The direction of the default matters here. If unmarked time counts as available, anyone who forgets to block a night shift produces a false overlap. If unmarked time counts as busy, forgetting costs you an option but never produces a wrong promise. For rotating rosters the second failure is far cheaper. Alerting people will recognise the shape of this choice: decide which way your system should be wrong.
Tools
GapMeet is built on that "unmarked means busy" rule. You pick up to 30 days and the hours that matter, send a link, and each person highlights free time; no account or email address is needed, and the agreed time goes into your own phone calendar as a file with reminders. If you only want to see your own days off, its shift calendar generator draws twelve months for thirteen common patterns from a start date.
One caution: employers modify standard patterns. If a generated grid disagrees with the roster you were actually given, the roster wins.
Disclosure: I am affiliated with the site linked above. This post was drafted with AI assistance.
Top comments (0)