Team working on laptops while tracking shift hours Photo: Unsplash
$/hr

How to Use the Work Hours Calculator

1
Set Shift Start and End Times

Pick the exact clock time you started and finished work.

2
Overnight Shift Handling

If your shift starts in the evening and ends the next morning (e.g., 10 PM to 6 AM), our tool detects the midnight crossing automatically.

3
Subtract Meal Deductions

Choose your scheduled unpaid lunch or dinner break period.

4
View Hours and Decimal Format

See total time formatted as hours/minutes (7h 45m) and decimal hours (7.75 hrs) for timesheet entry.

Formula & Calculation Logic

Elapsed Minutes = (End Time - Start Time) If End < Start: Elapsed = Elapsed + 1440 min (24 hrs) Net Hours = (Elapsed Minutes - Break Minutes) / 60

When working across midnight, adding 1,440 minutes (24 hours) accurately reconciles the day change without error. Dividing remaining net minutes by 60 produces fractional decimal hours required by electronic payroll systems.

Worked Example

Graveyard Shift Hospital Nurse Walkthrough

A registered nurse starts an overnight shift at 7:00 PM (19:00) and clocks out at 7:30 AM (07:30) the following morning, with a 45-minute mandatory unpaid meal break. Total elapsed shift time is 12 hours 30 minutes (750 minutes). Deducting 45 minutes leaves 705 net working minutes, which equals 11 hours 45 minutes or exactly 11.75 decimal hours.

Visual Explanation Diagram

Clock showing a work shift with an unpaid break removed

Clock showing a work shift with an unpaid break removed

Frequently Asked Questions

The calculation automatically detects when end time is earlier than start time and adds a full 24-hour cycle (1,440 minutes) so overnight and graveyard shifts compute accurately.

Divide the minutes (45) by 60: 45 / 60 = 0.75. Therefore, 7 hours and 45 minutes is 7.75 decimal hours.

Under FLSA regulations, employers can round employee time to the nearest quarter hour (15 minutes). Minutes 1 through 7 round down, while minutes 8 through 14 round up to 15 minutes.

Under federal wage law, short rest breaks (lasting between 5 and 20 minutes) must be counted as paid hours worked and cannot be deducted.

Verified Mathematical Logic & Formulas
Last updated: October 2026 • Client-side computation (no data transmitted)