Hours Calculator — Time Between Two Times
Find the hours and minutes between two clock times, overnight shifts included, minus an unpaid break, as h:mm:ss, decimal hours and optional pay.
This hours calculator finds the time between two clock times — a shift, a flight, a study session or a parking stay — and takes off an unpaid break. It handles shifts that run past midnight and gives the answer as hours and minutes, decimal hours for timesheets and payroll, total minutes and, if you add an hourly rate, the pay.
How to use this tool
- Enter the start time and the end time.
- Enter any unpaid break in minutes, or 0.
- Optionally add an hourly rate to see the pay for the period.
- Copy the duration as h:mm:ss or as decimal hours, whichever your timesheet uses.
Formula
Duration = (end − start, + 24 h if the end is earlier) − break
Both times are converted to seconds after midnight. If the end is earlier than the start, the shift is assumed to cross midnight once, so 24 hours are added. Decimal hours are seconds ÷ 3,600; 15 minutes is 0.25 h and 45 minutes is 0.75 h.
Example
A night shift from 22:00 to 06:15 with no break: 2 hours until midnight plus 6 hours 15 minutes after it gives 8:15:00, or 8.25 decimal hours. At $20 an hour that is $165.00.
Frequently asked questions
How do I turn minutes into decimal hours?
Divide the minutes by 60: 20 minutes is 0.33 h, 30 minutes 0.5 h, 50 minutes 0.83 h. The calculator does this for you in the Decimal hours result.
What if a shift is longer than 24 hours?
Two clock times cannot show more than 24 hours. Split the period at midnight into two lines, or use the add time calculator to sum several durations.
Can I total a whole week?
Yes — use the time card calculator, which takes a start, end and break for each day and works out overtime.
Last updated:
Page address with these inputs: https://kakao.mobile/tools/time-duration-calculator/
Cite or embed this tool
kakaoCalc. (2026, November 8). Hours Calculator — Time Between Two Times. https://kakao.mobile/tools/time-duration-calculator/
“Hours Calculator — Time Between Two Times.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/time-duration-calculator/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms