Find elapsed clock time, including a shift that crosses midnight.
Use this tool for measuring elapsed clock time for shifts or appointments. Enter a start and end clock time, and choose whether the end occurs on the same day or the next day.
How to use the time duration calculator
Enter a start and end clock time, and choose whether the end occurs on the same day or the next day.
The form starts with a demonstration you can run immediately. Its starting inputs are Start time = 22:30; End time = 06:15; End date = Next day. Replace these values with your own and select Calculate. Results appear underneath the buttons. Select Reset to restore the example. If you receive a validation message, check the field formats and try again.
What the calculation measures
Convert both clock readings to minutes after midnight. In next-day mode add 1,440 minutes before subtracting the start.
Decimal hours are useful for time sheets. For example, 45 minutes is 0.75 hours, rather than 0.45 hours.
This tool does not deduct breaks or fold in clock changes. Subtract unpaid breaks separately and use actual timestamps for multi-day or daylight-saving calculations.
Worked example and comparison cases
The example inputs below give you a baseline you can reproduce. You can enter a comparison case next to check how the result moves when one input or assumption changes.
Starting example
Enter Start time 22:30; End time 06:15; End date Next day. The results are Elapsed time 7 h 45 min; Decimal hours 7.75. This is the starting scenario shown in the form.
The default crosses midnight. Split the time at midnight to check the total manually: from the start to midnight, then midnight to the end. The clock readings alone do not specify that the end is tomorrow.
Comparison 1
Enter Start time 08:30; End time 17:15; End date Same day. The results are Elapsed time 8 h 45 min; Decimal hours 8.75. Compared with the starting example, this case changes Start time, End time, End date.
A same-day duration can be found by counting from the start through noon and on to the end. Subtract any unpaid break separately when using the number for payroll.
Comparison 2
Enter Start time 22:30; End time 06:15; End date Next day. The results are Elapsed time 7 h 45 min; Decimal hours 7.75. This is the starting scenario shown in the form.
This case repeats the default and checks its decimal conversion. Forty-five minutes contributes three quarters of an hour, which is how the result is represented in a time sheet.
Comparison 3
Enter Start time 09:00; End time 09:00; End date Same day. The results are Elapsed time 0 h 0 min; Decimal hours 0. Compared with the starting example, this case changes Start time, End time, End date.
Matching readings on the same day give zero elapsed time. If a booking uses an inclusive calendar convention or specifies an entire day, choose the intended end date instead.
Comparison 4
Enter Start time 09:00; End time 09:00; End date Next day. The results are Elapsed time 24 h 0 min; Decimal hours 24. Compared with the starting example, this case changes Start time, End time.
Matching readings on consecutive days give 24 hours in nominal clock time. Dates and timezones are needed if a clock change actually occurred between the two events.
Check the inputs against your source
Write down where the inputs came from before relying on the result. If you copied numbers from two records, make sure the records describe the same person, transaction, period or dataset. Work from the original values if possible. A rounded amount shown in a report may be adequate for a quick check, but reusing several rounded values can move the final answer enough to matter.
For this calculation, start by checking start time, end time, end date. Decimal hours are useful for time sheets. For example, 45 minutes is 0.75 hours, rather than 0.45 hours. If a source uses a different definition, record the two calculations separately so that you can explain any discrepancy. Before sharing the result, include the inputs alongside it so the next reader can reproduce it without guessing what you entered.
Compare scenarios without losing the baseline
Save the starting inputs and outputs before editing a value. Change one assumption, then read the result against your baseline. When several inputs need to change together, write down the reason for those changes and treat them as a separate scenario. This is especially useful when two people are comparing results from different documents or when the source data might be revised later.
This tool does not deduct breaks or fold in clock changes. Subtract unpaid breaks separately and use actual timestamps for multi-day or daylight-saving calculations. It helps to choose a realistic alternative, such as an actual quoted figure, a measurement in the correct unit, or another value supported by your dataset. Compare the magnitude of the difference as well as its direction. Small differences can be down to rounding. Larger differences are a reason to review whether the two scenarios started from comparable inputs.
Common questions
What should I do if I get a different answer elsewhere?
Replicate the inputs shown in the worked example first. If the result agrees there, check your own entry against the source values and compare the two methods. Pay particular attention to units, inclusions and any rounding convention. Convert both clock readings to minutes after midnight. In next-day mode add 1,440 minutes before subtracting the start.
How much precision should I keep?
Keep source values unrounded when you can. Choose the precision you report based on the question you are answering. For example, a figure you are using in a later calculation may need more digits than a figure you are giving in a quick summary. If a policy or quote supplies a rounding rule, compare your result using that rule.
Can I reuse the result when an input changes?
Recalculate when the measurement, quote or assumption changes. Record the prior result if it was part of a decision or report. A dated record makes it possible to compare the two runs accurately and see which difference came from a new input rather than an earlier entry mistake.