Time Duration Calculator
Calculate time duration from the values you enter.
About Time Duration Calculator
Shift workers logging hours, freelancers billing by time, and parents tracking a baby's sleep often need the length between two clock times. Night shifts that cross midnight are where manual math usually breaks, and that is exactly the case this tool handles.
How it works
You pick a start time and an end time using hour and minute fields. The tool converts each into minutes since midnight and subtracts start from end. If the result is negative, it adds 1,440 minutes (24 hours), assuming the end time falls on the next day. The output is hours and minutes, such as '7h 45m'. It works within a single 24-hour span only, has no seconds, does not subtract breaks, and cannot total several time ranges.
How to use Time Duration Calculator
- Complete the available fields: Start, End. Use the field labels and examples shown in the workspace.
- Select “Run tool” and check the result before copying or downloading it.
Worked example
A night shift starts at 22:30 and ends at 06:15. Start is 1,350 minutes and end is 375 minutes after midnight. The difference is minus 975, plus 1,440 gives 465 minutes. The tool shows '7h 45m'.
Tips for a better result
- Subtract unpaid breaks yourself. A 7h 45m shift with a 30-minute meal break is 7h 15m of paid time.
- To convert the result to decimal hours for a timesheet, divide the minutes by 60. 7h 45m is 7.75 hours.
- For periods longer than 24 hours, use the Date Difference Calculator for the days and add the hours separately.
Frequently asked questions
Does it handle shifts that cross midnight?
Yes. When the end time is earlier than the start time, the tool assumes the end is on the next day and adds 24 hours. A shift from 23:00 to 07:00 shows 8h 0m.
What if the start and end are the same time?
The difference is 0 and the tool shows '0h 0m'. It does not assume a full 24 hours, so a full-day span needs to be noted separately.
Does it account for daylight saving changes?
No. It works with clock times only, without dates or time zones. On the night clocks change, the real elapsed time can be an hour more or less than shown.
What to check
Results depend on the inputs and formula shown. Estimates may omit fees, taxes or individual circumstances.
Read the Privacy Policy for information about local processing, connected services and advertising.