Time Duration Calculator: Hours Between Times

Time Duration Calculator
ELAPSED TIME
–
TOTAL MINUTES
–
DECIMAL HOURS
–
RESULTING TIME
–

How long did that shift last? What time will dinner be ready if it needs 2 hours 45 minutes? Time arithmetic trips people up because clocks don't work in base 10 — an hour has 60 minutes, and the day wraps around at midnight. The calculator above handles both directions: measure the gap between two times, or add and subtract time from any starting point.

How elapsed time is calculated

The reliable method is to convert everything to minutes first, do the subtraction, then convert back:

1. start_minutes = start_hours × 60 + start_minutes
2. end_minutes = end_hours × 60 + end_minutes
3. elapsed = end_minutes − start_minutes
4. hours = elapsed ÷ 60 (whole part), minutes = elapsed mod 60

Example: 09:30 to 17:45. That's 570 minutes to 1,065 minutes — a gap of 495 minutes, which is 8 hours 15 minutes.

Crossing midnight

Night shifts and red-eye flights end "tomorrow." When the end time is earlier than the start time, add a full day (1,440 minutes) to the end before subtracting. A shift from 22:00 to 06:00 is 1,320 minutes minus... rather: 06:00 becomes 1,800 minutes, minus 1,320 = 480 minutes, or 8 hours. Tick the overnight box in the calculator and it does this automatically; without it, an end-earlier-than-start is flagged as a likely mistake.

Decimal hours vs hours and minutes

Payroll and billing usually want decimal hours. The conversion is simple division by 60:

Clock timeDecimal hours
8h 15m8.25
7h 30m7.50
6h 45m6.75
5h 20m5.33
1h 05m1.08

A common error is writing 8:15 as 8.15 hours — that's wrong; 15 minutes is a quarter hour, so it's 8.25. The calculator shows both forms so you never have to guess.

Adding and subtracting time

Going the other direction — "what time is 2h 45m after 22:30?" — add in minutes and wrap around the 24-hour clock:

result = (start_minutes ± delta_minutes) mod 1,440
then convert back to hours and minutes.

22:30 is 1,350 minutes; plus 165 = 1,515; minus 1,440 = 75 minutes = 01:15 the next day. The calculator reports the day shift so you know when you've crossed midnight.

Everyday uses

Timesheets: convert shift lengths to decimal hours for payroll in one step. Cooking: work backwards from serving time to know when to start. Travel: add flight duration to departure time across time zones (remember to adjust the zone separately). Freelance billing: session gaps become billable decimal hours without spreadsheet fiddling.

Payroll rounding: the 7-minute rule

Many employers round clock times to the nearest quarter hour, and US labor rules allow it as long as the rounding is neutral over time — it can't systematically shave minutes off workers' pay. The common scheme rounds 1–7 minutes down and 8–14 minutes up:

Clock-inRounded to
08:0308:00
08:0908:15
17:5217:45
17:5818:00

If your timesheet looks "off" by a few minutes versus your own calculation, rounding is usually the explanation — and it's legal only when it averages out fairly. When in doubt, keep your own log of exact times.

Time zones: the other midnight problem

Durations get trickier across zones. A flight leaving 18:00 in New York and landing 21:30 in Los Angeles looks like 3.5 hours on the clocks, but it's really 6.5 — the three-hour zone shift hides inside. Always convert both times to a common reference (UTC, or the departure zone) before subtracting. For scheduling across zones, anchor on one zone's clock and state it explicitly: "17:00 ET" beats "5pm" every time.

Frequently asked questions

How do you calculate hours between two times?

Convert both times to minutes since midnight, subtract, then split the result back into hours and minutes. If the shift crosses midnight, add 1,440 minutes (24 hours) to the end time first.

What is 8 hours 15 minutes in decimal?

8.25 hours — divide the minutes by 60 (15 ÷ 60 = 0.25) and add to the hours. Don't write it as 8.15; that's a different, shorter amount of time.

How do night shifts that cross midnight work?

Add 24 hours to the end time before subtracting. A 22:00–06:00 shift is (06:00 + 24:00) − 22:00 = 8 hours.

Why do timesheets use decimal hours?

Payroll math needs multiplication (hours × rate), which is awkward with minutes. Decimal hours turn 7h 30m into 7.5, which multiplies cleanly.

How do I add 90 minutes to a time?

Add 60 to get the next hour, then 30 more. 14:20 + 90 minutes = 15:50. For bigger spans, convert to total minutes, add, and wrap past 1,440 back to 00:00.

Does this account for daylight saving time?

No — the calculator does pure clock arithmetic. On DST changeover days the actual elapsed wall-clock time can differ by an hour; for payroll on those days, check your local rules.

References

Time arithmetic follows standard sexagesimal (base-60) conventions; see Sexagesimal — Wikipedia. Payroll decimal-hour conventions: U.S. Department of Labor, Wage and Hour Division.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top