Hours Calculator

How to calculate night shift hours that cross midnight

Quick answer

To get night shift hours, add 24 to the end time whenever it is earlier than the start time, then subtract. 10 p.m. to 6 a.m. is (6 + 24) minus 22 = 8 hours; 7 p.m. to 7 a.m. is 12 hours. Then take off the unpaid break and count the shift in the workweek where it falls.

Updated 2 min readGambit Studio

Overnight shift chart

ShiftTotalMinus 30-min unpaid break
7 p.m. to 7 a.m.12 h11.5 h
6 p.m. to 6 a.m.12 h11.5 h
8 p.m. to 6 a.m.10 h9.5 h
10 p.m. to 6 a.m.8 h7.5 h
11 p.m. to 7 a.m.8 h7.5 h
3 p.m. to 1 a.m.10 h9.5 h
4 p.m. to 12:30 a.m.8.5 h8 h

Step by step

  1. Write both times in 24-hour format: 7 p.m. is 19:00, 7 a.m. is 07:00 (military time chart).
  2. If the end is smaller than the start, add 24 to the end: 07:00 becomes 31:00.
  3. Subtract: 31:00 minus 19:00 is 12 hours.
  4. Take off unpaid meal breaks. Short breaks of about 20 minutes or less count as work time under federal rules (DOL Fact Sheet #22).
  5. Keep it as one shift on your time card, then add it to the week's total.

Which week does the shift count in?

Overtime is figured per fixed workweek of 168 hours (DOL Fact Sheet #23). If your workweek ends Saturday at midnight and a shift runs Saturday 10 p.m. to Sunday 6 a.m., the hours before midnight belong to the old week and the hours after to the new one, unless your employer's payroll policy assigns the whole shift to the day it started. Ask payroll which method they use and keep your punches either way.

In a spreadsheet, the same math is =MOD(end-start,1)*24 (hours worked in Excel).

The hours app we're building

Hours Calculator: Time Card is an app Gambit Studio is building and it is not on the App Store yet. It will log clock-in, clock-out and breaks for each day, total the week and the month, keep an hour bank against your contracted schedule, show overtime with the estimated pay from your hourly rate and export a PDF time card, with no account and offline. Leave your email and we will tell you when it lands on the App Store.

Sources

  1. U.S. Department of Labor, Wage and Hour Division: Fact Sheet #22, Hours Worked Under the FLSA
  2. U.S. Department of Labor, Wage and Hour Division: Fact Sheet #23, Overtime Pay Requirements of the FLSA (revised October 2019)

Frequently asked questions

What people ask most about this, answered with the source.

How many hours is 7pm to 7am?
12 hours. With a 30-minute unpaid break, 11.5 paid hours.
How many hours is 11pm to 7am?
8 hours: (7 + 24) minus 23.
How do you calculate hours worked overnight?
Add 24 to the end time when it is earlier than the start time, subtract the start time, then subtract unpaid breaks.
Does a night shift get overtime?
Federal overtime depends on hours over 40 in the workweek, not on the time of day. Night shift differentials are set by employers or contracts.
HorasComing soon to the App Store
Notify me at launch