What you need to know
Define the cycle as consecutive work days plus off days. For each calendar date, calculate days since the cycle start modulo cycle length; positions below the work-day count are scheduled shifts.
Formula variables and scope
- d
- Whole days since verified cycle start
- W
- Consecutive work days
- O
- Consecutive off days
- p
- Cycle position, d mod (W + O)
Worked examples
Four-on/four-off
Inputs: Cycle start is work day 1; target is 10 days later
- Cycle length = 8
- 10 mod 8 = 2
Result: Target falls on work day 3 of the repeated cycle.
Limitation: The start date and local calendar date must be verified.
Overnight shift duration
Inputs: 22:00 to 06:00; 30-minute unpaid break
- Gross duration = 8 hours
- Subtract 0.5 hour
Result: Net modeled duration = 7.5 hours.
Limitation: Schedule position does not determine payroll or legal entitlement.
Define one complete cycle
A 4-on/4-off rotation has eight positions. Anchor position zero to a verified cycle-start date; otherwise every generated date can be shifted even when the repeating arithmetic is correct.
Use modulo arithmetic
Count whole calendar days from the start date and take the remainder after division by cycle length. In a 4-on/4-off pattern, remainders zero through three are work days.
Handle overnight time separately
A 19:00 start with a twelve-hour duration ends at 07:00 the following date. Elapsed hours must explicitly cross midnight.
Keep exceptions visible
Leave, swaps, training and holidays interrupt a base pattern. Generate the repeating rota first, then reconcile exceptions against the actual roster.
Treat fatigue as a safety issue
NIOSH explains that night and extended schedules can disrupt sleep and contribute to fatigue. A rotation calculator identifies dates; it does not determine whether a schedule is safe, lawful or suitable.
| Pattern | Cycle length | Calendar interpretation |
|---|---|---|
| 4 on / 4 off | 8 days | Positions 0–3 work |
| 2 on / 2 off | 4 days | Positions 0–1 work |
Put the method into practice
Use the related calculator with your own verified values and review the visible breakdown.
Related calculators
Explore more in Date and work guide.
Frequently asked questions
What should I verify about define one complete cycle?
A 4-on/4-off rotation has eight positions. Anchor position zero to a verified cycle-start date; otherwise every generated date can be shifted even when the repeating arithmetic is correct.
What should I verify about use modulo arithmetic?
Count whole calendar days from the start date and take the remainder after division by cycle length. In a 4-on/4-off pattern, remainders zero through three are work days.
What should I verify about handle overnight time separately?
A 19:00 start with a twelve-hour duration ends at 07:00 the following date. Elapsed hours must explicitly cross midnight.
What should I verify about keep exceptions visible?
Leave, swaps, training and holidays interrupt a base pattern. Generate the repeating rota first, then reconcile exceptions against the actual roster.
References and scope
This guide is educational and does not replace current official guidance, a contract, manufacturer instructions, approved plans, lender disclosures, registrar records or qualified professional advice.

