Free browser-based calculators.Back home
%Compound Calculator

Time Duration Calculator

Find hours and minutes between two clock times.

Result2 hours 30 minutes | 150 total minutes

If the end time is earlier, the tool assumes the duration crosses midnight.

Short answer: Convert each time to minutes, subtract, and add 24 hours if the end is after midnight: 09:15 to 17:45 is 8 h 30 min, and 22:30 to 06:10 is 7 h 40 min.

Examples

StartEndDuration
09:1517:458 h 30 min
22:3006:10 (next day)7 h 40 min
08:0012:304 h 30 min
13:4518:204 h 35 min

Decimal hours for timesheets

Payroll often needs decimals: minutes / 60. 8 h 30 min is 8.5 hours; 7 h 40 min is 7.67 hours, not 7.40. At a rate of 18 an hour, 8.5 hours pays 153.

Subtracting breaks

Take the unpaid break off the total: 510 minutes less a 45-minute break is 7 h 45 min (7.75 decimal hours).

Time zones and daylight saving

Clock-time subtraction assumes both times are in the same zone and the same day length. Across a daylight-saving change a night can be 23 or 25 hours long, so use full date-times with zone offsets for exact elapsed time.

How this calculator works

The form above runs in your browser with the same arithmetic described on this page; nothing you type is sent to a server. Results are rounded for display only, so a long decimal may differ from the last digit of a hand calculation. Empty, zero or non-numeric inputs return a message instead of a result, and division by zero is never evaluated.

Use the tool to check your own working rather than to replace it: write the formula, substitute your numbers, and compare. If the two disagree, look first at units, the order of the inputs and whether a percentage was entered as 5 or as 0.05.

The tables on this page are generated by script from the formulas shown, not typed by hand, and are rebuilt whenever the page is reviewed. The reviewed date above is the date those numbers were last recomputed.

Typical input errors are worth a second look before you rely on a result: a comma used as a decimal separator, a value typed in the wrong unit, or two inputs swapped. If a result looks implausible, test the tool with a case you can do in your head, such as round numbers, and confirm it matches before trying your real figures.

Sources

Related tools

Educational tool. Found an error? Tell us.