What is a time duration calculator?
A time duration calculator finds the time between a start time and an end time in hours and minutes. If the end time is earlier than the start, it is treated as the next day, so overnight shifts work. Subtract an unpaid break and read the result as decimal hours, ready for a timesheet or pay calculation.
How to use the Time Duration Calculator
- 1Enter the start time.
- 2Enter the end time. An earlier end time means the shift runs past midnight.
- 3Enter any unpaid break in minutes.
- 4Use decimal hours to multiply by an hourly rate.
The formula
Decimal hours = total minutes ÷ 60. For example, 7 hours 45 minutes is 7.75 hours. The calculator works within a 24-hour window; for multi-day spans, use the date difference calculator.
Worked example
Calculated from the sample inputs below.
Inputs
- Start time
- 09:00
- End time
- 17:30
- Unpaid break
- 30 min
Results
- Time worked
- 8 h 0 min
- Decimal hours
- 8.00
- Total minutes
- 480
- Span before break
- 8 h 30 min
Tips
- Payroll systems usually want decimal hours, not hours:minutes.
- Round to the nearest quarter hour only if your employer’s policy says so.
- For a weekly total, add the decimal hours from each day.
Frequently asked questions
How do I calculate hours worked?
Subtract the start time from the end time, then subtract unpaid breaks. 9:00 to 17:30 with a 30-minute break is 8 hours.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25, 30 is 0.5 and 45 is 0.75.
Does it work for night shifts?
Yes. If the end time is earlier than the start time, the calculator adds 24 hours.
What hourly pay does that give?
Multiply the decimal hours by your hourly rate. 7.75 hours at 20 an hour is 155.
Related calculators
Sources & methodology
Read how we build and check calculators in our methodology and editorial policy. Last reviewed November 24, 2026.
Was this calculator helpful?