Work, Shifts & Timesheets

Night Shift Hours Inputs

Results

Result —
Secondary —
Details —

How Night Shift Hours Calculator Works?

The Night Shift Hours Calculator works by finding the overlap between a shift and a defined night window, such as 22:00–06:00. Only hours inside the window count as night hours.

  1. 1. Enter the shift

    Type clock-in and clock-out, such as 18:00 and 03:00.

  2. 2. Set the night window

    Use the window from the contract or law, such as 22:00–06:00.

  3. 3. Find the overlap

    The overlap runs from 22:00 to 03:00 = 5 hours.

  4. 4. Split the shift

    The widget shows 9 total hours, so 5 are night hours and 4 are day hours.

Night Shift Hours Calculator Formula

The Night Shift Hours Calculator formula is night hours = max(0, min(shift end, window end) − max(shift start, window start)), with times past midnight shifted by +24 hours.

  • Shift = [start, end] (+24 h to end if overnight)
  • Window = [W_start, W_end] (+24 h to W_end if overnight)
  • Night hours = max(0, min(end, W_end) − max(start, W_start))
  • Day hours = shift length − night hours

Example: a 18:00–03:00 shift with a 22:00–06:00 window gives min(27, 30) − max(18, 22) = 5 night hours and 4 day hours.

Night Shift Hours Calculator Conversion Table

The Night Shift Hours Calculator conversion table shows shifts split into night hours for a 22:00–06:00 window.

ShiftTotalNight HoursDay Hours
14:00–22:00808
16:00–00:00826
18:00–03:00954
20:00–04:00862
22:00–06:00880
00:00–08:00862
19:00–07:001284

What is Night Shift Hours Calculator?

A Night Shift Hours Calculator is a tool that counts the hours of a shift that fall inside a defined overnight window.

Night windows differ by law and contract. The European Union Working Time Directive defines night time as a period of at least 7 hours that includes 00:00–05:00, and many contracts use 22:00–06:00 or 23:00–07:00.

Night hours often earn a shift differential or count toward night-worker limits. The EU directive limits night workers to an average of 8 hours per 24 hours.

What are the uses of Night Shift Hours Calculator?

There are 5 main uses of the Night Shift Hours Calculator, including night premium pay, compliance checks, and health tracking.

Night premium pay

Payroll applies a differential only to hours inside the night window.

Compliance checks

HR teams check night-worker hour limits.

Health tracking

Occupational health teams track exposure to night work.

Roster balance

Managers spread night hours fairly across staff.

Union agreements

Representatives verify night-hour counts in contracts.