Count Hours Calculator
Calculate total work hours, breaks, overtime, and pay from multiple time entries. Supports overnight shifts and custom hourly rates.
About
Payroll errors cost U.S. businesses roughly $7 billion annually. Most stem from manual hour-counting mistakes: forgotten breaks, mishandled overnight shifts, or rounding errors that compound over pay periods. This calculator converts raw clock-in/clock-out pairs into precise decimal hours using minute-level arithmetic. It accounts for cross-midnight shifts automatically (when tend < tstart, the engine adds 1440 min to normalize the interval). Break durations are subtracted per entry before aggregation.
The tool computes net working time as Hnet = nโi=1(tend,i โ tstart,i โ bi). Overtime is flagged against a configurable daily threshold (default 8 h). Gross pay is derived by multiplying net hours by your hourly rate. Note: this tool does not handle jurisdiction-specific overtime multipliers (time-and-a-half, double-time) or split-shift premiums. Apply those rules to the overtime figure manually.
Formulas
The net working time for each entry is computed by converting clock times to minutes, handling overnight rollover, and subtracting the break duration.
Where tend,i and tstart,i are in minutes since midnight. If tend < tstart, the engine applies: tend = tend + 1440. The variable bi is break duration in minutes.
Where T is the overtime threshold in hours (default 8.0). Gross pay calculation:
Where R is the hourly rate in the user's currency. For decimal hour conversion: 7 h 45 min = 7.75 decimal hours (minutes รท 60).
Reference Data
| Scenario | Start | End | Break | Gross Hours | Net Hours | Notes |
|---|---|---|---|---|---|---|
| Standard day shift | 09:00 | 17:00 | 30 min | 8.00 h | 7.50 h | Typical office schedule |
| Early morning shift | 06:00 | 14:00 | 30 min | 8.00 h | 7.50 h | Manufacturing / warehouse |
| Overnight shift | 22:00 | 06:00 | 45 min | 8.00 h | 7.25 h | Crosses midnight |
| Short part-time | 10:00 | 14:00 | 0 min | 4.00 h | 4.00 h | No break required under 6 h (US FLSA) |
| Extended shift (12 h) | 07:00 | 19:00 | 60 min | 12.00 h | 11.00 h | Healthcare / emergency |
| Split shift (AM block) | 08:00 | 12:00 | 0 min | 4.00 h | 4.00 h | Enter each block as separate entry |
| Split shift (PM block) | 16:00 | 20:00 | 0 min | 4.00 h | 4.00 h | Combined: 8.00 h net |
| US FLSA standard week | Mon - Fri | 150 min | 40.00 h | 37.50 h | Overtime threshold: 40 h/week | |
| EU Working Time Directive | Average week | - | 48.00 h max | - | Maximum average over 17 weeks | |
| Freelancer day | 09:30 | 18:15 | 45 min | 8.75 h | 8.00 h | Billable hours tracking |
| Minimum rest (EU) | - | - | - | - | 11 consecutive hours rest per 24 h | |
| US Federal overtime rate | - | - | - | - | 1.5ร base rate after 40 h/week | |
| California daily OT | - | - | - | - | 1.5ร after 8 h/day, 2ร after 12 h | |
| Lunch break (US FLSA) | - | 30 min | - | - | Not federally required but common standard | |
| UK statutory break | - | 20 min | - | - | Required if shift > 6 h | |