Time Duration Calculator
Calculate the Exact Duration between Two Times or Dates. Type Times Any Way You Like (9, 930p, 9:30 AM, or 21:30) and Get Total Hours, Minutes, Seconds, and Decimal Hours Instantly.
Elapsed Time in , Including Daylight Saving Changes.
Total Duration
-
- Decimal Hours
- -
- Total Minutes
- -
- Total Seconds
- -
- Pay
- -
Time Ledger
Saved in This Browser Only. Export a CSV to Keep a Backup.
Worked Example: An Overnight Shift with a Meal Break
A warehouse worker clocks in at 10:30 PM and clocks out at 7:15 AM, with a 30-minute unpaid meal break, and earns $20 an hour. Because 7:15 AM is earlier than 10:30 PM, the shift crosses midnight.
From 10:30 PM to midnight is 1 hour 30 minutes, and from midnight to 7:15 AM is 7 hours 15 minutes, so the shift is 8 hours 45 minutes in total. Subtract the 30-minute break to get 8 hours 15 minutes worked, which is 8.25 decimal hours. At $20 an hour, that is $165.00 for the shift. That is 15 minutes over an 8-hour day, but under federal rules overtime is counted by the week, not the day.
How to Calculate Time Duration
Write both times on a 24-hour clock, so 2:15 PM becomes 14:15. Subtract the start hours from the end hours and the start minutes from the end minutes. If the end minutes are smaller, borrow one hour: add 60 to the end minutes and take 1 from the end hours. 14:15 − 9:40 becomes 13:75 − 9:40 = 4 hours 35 minutes.
If the end time is earlier than the start time, the period crosses midnight. Add 24 hours to the end time first. For several shifts in one day, work out each block separately and add them together, then subtract unpaid breaks.
Time Duration Formula
Duration = End time − Start time (add 24 hours if the end is earlier than the start)
Net duration = Total duration − Unpaid breaks
Decimal hours = Total minutes ÷ 60
Common Time Duration Examples
| Start | End | Duration | Decimal |
|---|---|---|---|
| 8:00 AM | 5:00 PM | 9 hours | 9.00 |
| 9:00 AM | 5:00 PM | 8 hours | 8.00 |
| 9:00 AM | 5:30 PM | 8 hours 30 minutes | 8.50 |
| 10:00 PM | 6:00 AM (Next Day) | 8 hours | 8.00 |
| 12:00 PM | 3:30 PM | 3 hours 30 minutes | 3.50 |
| 7:15 AM | 3:45 PM | 8 hours 30 minutes | 8.50 |
Sources
- U.S. Department of Labor: Fact Sheet #22, Hours Worked under the FLSA
- U.S. Department of Labor: Overtime Pay
Last Checked:
Frequently Asked Questions
How Do I Calculate the Time between Two Times?
Convert both times to 24-hour time, subtract the start from the end, and borrow 60 minutes from the hours when the end minutes are smaller. For 9:45 AM to 5:15 PM: 17:15 − 9:45 = 7 hours 30 minutes. The calculator does this as you type.
How Do I Calculate Hours past Midnight?
If the end time is earlier than the start time, the shift ends the next day. Add 24 hours to the end time before subtracting: 10:00 PM to 6:00 AM is (6 + 24) − 22 = 8 hours. The calculator detects this and labels the result “next day”.
How Do I Calculate Hours Worked with a Lunch Break?
Find the total time from start to finish, then subtract the unpaid break. 8:00 AM to 4:30 PM is 8 hours 30 minutes; minus a 30-minute lunch gives 8 hours worked. Use “Add break” above.
How Do I Convert Minutes into Decimal Hours?
Divide the minutes by 60. 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours. Payroll systems usually want decimal hours; the calculator shows them under every result.
How Many Hours Are between Two Dates?
Switch to “Between dates” and enter both dates and times. The result counts real elapsed time in your time zone, so a span that crosses a daylight saving change is an hour shorter or longer than the clock difference suggests.
Work Trail: From Hours Worked to Take-Home Pay.
Next Step on This Trail
Coming Next: Hours Calculator. When it launches, your times will carry over to it automatically.
- Step 1Time Duration Calculator
- Step 2 (Soon)Hours Calculator
- Step 3 (Soon)Time Card Calculator
- Step 4 (Soon)Overtime Calculator
- Step 5 (Soon)Paycheck Calculator