Shift Schedule Calculator
Generate a rotating shift calendar from a repeating pattern and start date, count shifts and look up any date.
Your inputs
Results
Shift on 2026-02-14
O
- Cycle length
- 8 days
- Totals in the period shown
- D: 8, N: 8, O: 12
✓Exact calculation — rounded only for display
| Date | Day | Shift |
|---|---|---|
| 2026-01-01 | Thu | D |
| 2026-01-02 | Fri | D |
| 2026-01-03 | Sat | N |
| 2026-01-04 | Sun | N |
| 2026-01-05 | Mon | O |
| 2026-01-06 | Tue | O |
| 2026-01-07 | Wed | O |
| 2026-01-08 | Thu | O |
| 2026-01-09 | Fri | D |
| 2026-01-10 | Sat | D |
| 2026-01-11 | Sun | N |
| 2026-01-12 | Mon | N |
| 2026-01-13 | Tue | O |
| 2026-01-14 | Wed | O |
| 2026-01-15 | Thu | O |
| 2026-01-16 | Fri | O |
| 2026-01-17 | Sat | D |
| 2026-01-18 | Sun | D |
| 2026-01-19 | Mon | N |
| 2026-01-20 | Tue | N |
| 2026-01-21 | Wed | O |
| 2026-01-22 | Thu | O |
| 2026-01-23 | Fri | O |
| 2026-01-24 | Sat | O |
What this calculator does
Rotating rosters such as “2 days, 2 nights, 4 off” repeat on a fixed cycle. Enter the pattern once to see the calendar and find your shift on any date.
Formula and method
Shift on date = pattern[(date − start) mod cycle length]
Worked example
Calculated by this tool with its default inputs:
Inputs
- Repeating pattern (codes separated by commas): D, D, N, N, O, O, O, O
- Date the pattern starts: 2026-01-01
- Number of days to show: 28
- Look up a specific date: 2026-02-14
Results
- Shift on 2026-02-14: O
- Cycle length: 8 days
- Totals in the period shown: D: 8, N: 8, O: 12
How to read the results
Works for dates before the start too, by counting the cycle backwards.
Assumptions and limitations
- Use any codes you like for shift types.
Questions
Can I plan a whole year?
Yes — show up to 730 days and export the table to CSV.
Methodology and verification
- Result type
- Exact mathematical calculation (rounded only for display)
- Formula version
- 1.0
- Automated verification
- 3 reference and validation test cases, checked against independently computed values. The site cannot be built if any of them fail.
- Editorial review
- Awaiting human editorial review. The explanation was drafted with AI assistance; the formula and examples are verified by the automated tests above.
Privacy
Everything you enter is calculated in this browser and is not sent to Numerith or anyone else. Inputs are added to a share link only if you choose to include them. Privacy policy