Filling in a time card by hand means subtracting clock times, removing lunch breaks, converting minutes to decimals and hoping nothing slipped. This hours calculator does it in one pass: enter a start time, an end time and the unpaid break for each shift, and it returns the total hours for the week.
It is built for real timesheets:
- Overnight shifts are understood automatically — 22:00 to 06:30 is 8.5 hours, not an error.
- Totals appear both as hours and minutes (37 h 30 min) and as decimal hours (37.5), the format payroll and invoicing tools expect.
- Add an hourly rate to see your pay, with hours beyond a weekly overtime threshold paid at a multiplier such as time and a half.
Employees use it to check a payslip, freelancers to bill a client, and managers to total a team member's week before approving it.
How to use this calculator
- Enter one row per shift: an optional label (Monday, Site A…), the start and end time, and the unpaid break in minutes.
- Add or remove rows as needed — up to 31, enough for a month of shifts.
- If a shift ends after midnight, just type the real end time (for example 02:00); it is counted on the next day.
- Optionally enter your hourly rate. Adjust the overtime threshold (40 h by default; clear it to switch overtime off) and the multiplier.
- Read the total, the split between regular and overtime hours, the pay and the per-shift table.
The formula
For each shift, with start , end (in minutes after midnight) and break :
The week's total is the sum of all shifts. With a weekly threshold (for example 40 h):
With an hourly rate and overtime multiplier :
Decimal hours are minutes ÷ 60, so 7 h 45 min is 7.75 h. Totals are computed in whole minutes, so there is no rounding drift across many shifts.
Worked example
A week with one late shift and one night shift, paid $18 an hour, overtime after 40 hours at 1.5×:
| Day | Start | End | Break | Worked |
|---|---|---|---|---|
| Mon | 08:00 | 17:30 | 30 min | 9 h |
| Tue | 08:00 | 17:30 | 30 min | 9 h |
| Wed | 08:00 | 17:30 | 30 min | 9 h |
| Thu | 08:00 | 19:00 | 60 min | 10 h |
| Fri | 22:00 | 06:30 | 30 min | 8 h |
Friday's shift crosses midnight: h, minus the 30-minute break, gives 8 h.
- Total: 45 h (45.00 decimal hours)
- Regular: 40 h × $18 = $720.00
- Overtime: 5 h × $18 × 1.5 = $135.00
- Total pay: $855.00
Overtime rules differ by country
The default of 40 hours at 1.5× follows the US federal rule for non-exempt employees. Elsewhere the numbers change: in France the legal week is 35 hours, with the first eight extra hours usually paid at +25 % and the following ones at +50 %; in Morocco the standard is 44 hours a week (2,288 hours a year outside agriculture), with overtime premiums that depend on the time of day and on rest days. Some contracts also count overtime per day rather than per week.
Set the threshold and multiplier to match your contract or collective agreement. When there are two overtime tiers, run the calculation for each tier or use an average multiplier as an estimate. To turn a gross wage into net pay, see the salary calculator.
Frequently asked questions
How do I calculate hours worked with a lunch break?
Subtract the start time from the end time, then subtract the unpaid break. 08:30 to 17:00 is 8 h 30 min; with a 45-minute lunch you worked 7 h 45 min, or 7.75 decimal hours.
How are overnight shifts handled?
When the end time is earlier than the start time, the calculator assumes the shift ended the next day and adds 24 hours. A shift from 23:00 to 07:00 counts as 8 hours before breaks.
How do I convert minutes into decimal hours for payroll?
Divide the minutes by 60: 15 min = 0.25 h, 30 min = 0.5 h, 45 min = 0.75 h. The calculator shows every total in decimal hours, ready to multiply by an hourly rate.
Is overtime calculated per day or per week?
Per week: every hour above the threshold in the whole table is overtime. If your rules count overtime per day, enter one day per calculation and set the threshold to the daily limit.
Should paid breaks be entered?
No. Only unpaid breaks are subtracted. If your 15-minute coffee break is paid, leave it out of the break column so it stays in your worked time.
Last updated: