Life Calculator
Understand the numbers · Make life easier

Shift-cycle schedule calculator

Generate up to 60 days from a custom shift cycle, optionally replace specific dates, and count shifts.

Start with your own numbers

Editable example

An example is filled in. Replace it with your own data to calculate.

Enter the repeating cycle and displayed dates; optionally enter each date and replacement shift.

Loading calculator…

Choose the date represented by the first item in your cycle.
Enter one label per day in order, for example: Day, Day, Night, Night, Off, Off.
The range may start before or after the cycle start date.
Enter a whole number from 1 to 60.
For dates within the displayed range, use YYYY-MM-DD,Shift; each date once.

Results update when inputs are complete. A plan is kept only when you save it. Inputs and results are not uploaded.

Saved plans →

Saved in this browser. Before changing devices, export a backup from My tools.

Example result

Shift on first shown date

Day shift

A one-day change does not shift the cycle; entries are not synchronized with the employer roster.

First date shown2026-11-01
Cycle position1 / 6
Next shift change2026-11-03
Day shift6 days
Night shift4 days
Off4 days
2026-11-01 (Sunday)Day shift
2026-11-02 (Monday)Day shift
2026-11-03 (Tuesday)Night shift
2026-11-04 (Wednesday)Night shift
2026-11-05 (Thursday)Off
2026-11-06 (Friday)Off
2026-11-07 (Saturday)Day shift
2026-11-08 (Sunday)Day shift
2026-11-09 (Monday)Night shift
2026-11-10 (Tuesday)Night shift
2026-11-11 (Wednesday)Off
2026-11-12 (Thursday)Off
2026-11-13 (Friday)Day shift
2026-11-14 (Saturday)Day shift

Worked steps

  1. offset = floor((date - cycle start) / 1 day)
  2. cycleIndex = ((offset % cycleLength) + cycleLength) % cycleLength

The cycle repeats from its start date. Optional dated changes replace only that day and leave the cycle position unchanged. The tool does not automatically obtain shift changes, holidays, leave or overtime, and does not determine work hours, wages or legal compliance; follow the official employer roster.

Method and scope

The cycle start date is the date represented by the first shift label. The list then repeats in the entered order.

Optional dated changes replace only the chosen day, without shifting the cycle. It does not automatically read leave, holidays or overtime, and does not assess wages or labour-law compliance. Use the employer-issued roster for attendance.

References:ECMAScript:Date Time String Format、MDN:Date.UTC()

Purpose

Generate a dated roster from a repeating shift pattern and summarize the count of each shift.

Inputs

Enter the cycle, date range and optional dated shift changes, one date and shift per line.

Formula

Find the whole-day offset from the cycle start, then apply positive modulo by cycle length so dates before the start also map correctly.

Example

For a cycle starting on 2026-11-01, change 2026-11-02 from Day to Off; the next day remains Night.

Understanding the result

The main answer is the first displayed shift. Supporting rows show cycle position, next change, counts and each dated shift.

Limits

This is a fixed-cycle projection, not an official roster, wage calculation or legal compliance check.

Keep it handy for next time

Add Shift-cycle schedule calculator to your home screen

This icon opens this tool. Confirm installation in your browser.

  1. iPhone: Open in Safari, tap Share → Add to Home Screen, then confirm.
  2. Android: Open in Chrome and choose Install app or Add to Home screen from the menu.
  3. In an in-app browser such as LINE or Facebook, use its menu to open the page in Safari or Chrome first.

Browser options vary. A shortcut does not provide cross-device synchronization, and an installed app may have separate storage. Export a backup from My tools first. The first load requires a connection.

Checking offline data.