Time Duration Calculator
Hours and minutes between two times — with break deductions, overnight shifts and decimal hours for payroll.
Total worked time
8 hours
8.00 decimal hours · for payroll and invoicing
8h 30m
before breaks
30 min
breaks deducted
1
day
End times earlier than start times are treated as overnight shifts (e.g. 22:00 → 06:00 is 8 hours). Decimal hours are what most payroll and invoicing systems expect — 8h 30m is 8.50 hours, not 8.30.
About this tool
Working out how long you worked sounds trivial until you try it in your head: 9:15 to 17:45 minus a 40-minute break, across five days, converted to decimal hours for an invoice. This calculator handles all of it — enter start and end times, add break minutes, and get the exact duration per day plus a running total.
Two details matter more than they look. **Overnight shifts** are handled automatically: enter 22:00 to 06:00 and the tool recognises the span crosses midnight and returns 8 hours, rather than a nonsensical negative. And **decimal hours** are shown alongside the hours-and-minutes figure, because payroll and invoicing systems almost universally want decimals — where 8 hours 30 minutes is 8.50 hours, not 8.30. Entering 8.30 for a 8h30m shift is one of the most common timesheet errors there is, and it costs real money.
Add a row for each day to total a week, with breaks deducted per day, and the summary shows total worked time, time before breaks, and total break time. It's built for timesheets, freelance invoicing, shift work and billable-hours tracking — and like everything here, it runs entirely in your browser, so your work records stay private.
How to use the Time Duration Calculator
- 1Enter the start and end time for a day.
- 2Add break minutes to deduct them from the total.
- 3Click 'Add another day' to build a full timesheet — the total updates live.
- 4Use the decimal hours figure for payroll and invoices (8h 30m = 8.50, not 8.30).
Frequently asked questions
How do I calculate hours between two times?
Convert both to minutes past midnight, subtract, then convert back — 9:15 to 17:45 is 555 to 1065 minutes, a difference of 510 minutes, or 8h 30m. This calculator does it instantly and also deducts your break time.
How does it handle overnight or night shifts?
Automatically — if the end time is earlier than the start time, the tool treats the span as crossing midnight and adds 24 hours. So 22:00 to 06:00 correctly returns 8 hours rather than a negative number. Night shifts need no special handling.
Why are decimal hours different from hours and minutes?
Because minutes are base-60 and decimals are base-100: 8 hours 30 minutes is 8.50 decimal hours (30 ÷ 60 = 0.5), not 8.30. Writing 8.30 on a timesheet underpays you by 12 minutes. The tool shows both, so you can copy the right one.
Can I total a whole week?
Yes — add a row per day, each with its own start, end and break, and the summary totals everything: total worked time, time before breaks, and total break time deducted. It works as a complete weekly timesheet.
Related tools
Date Difference Calculator
Days between two dates — exact years/months/days, total days, weeks, and working days.
Open toolBusiness Days Calculator
Count working days between two dates, or add business days to a date — with custom holiday exclusions.
Open toolOnline Stopwatch
A precise stopwatch with lap timing — hundredths of a second, fastest/slowest lap highlighting, no install.
Open toolTime Zone Converter
Convert any date and time between world time zones — DST-aware, with the live time difference shown.
Open tool