Bills, Percentages & Everyday Math · Time & Everyday

How to Calculate Time Duration Between Two Times

Convert each time to a common minute or second count, subtract the start from the end, and add 24 hours only when the interval crosses midnight.

To calculate time duration, convert the start and end into a common unit, subtract the start from the end, and convert the difference back into hours, minutes, and seconds. The Time Duration Calculator supports breaks and overnight end times so a shift does not become a negative number by mistake.

Put both times on one scale

Use minutes after midnight for a minutes-and-hours calculation:

total minutes = hours × 60 + minutes

For seconds, add seconds after converting hours and minutes. Convert 2:15 PM to 855 minutes and 5:45 PM to 1,065 minutes. The input format can be 12-hour or 24-hour, but both times must identify the same convention.

Subtract the start from the end

For a same-day interval:

duration = end total minutes − start total minutes

From 2:15 PM to 5:45 PM, the difference is 1,065 − 855 = 210 minutes, or 3 hours 30 minutes. Keep 30 minutes as 30 minutes; it is 0.5 hours only after a deliberate conversion to decimal hours.

Handle an overnight interval

If the end time is earlier on the clock because the interval crosses midnight, add 24 hours before subtracting. From 10:30 PM to 2:15 AM:

start = 22 h 30 min
end = 2 h 15 min + 24 h = 26 h 15 min
duration = 3 h 45 min

The calculator uses an overnight option or end-time interpretation rather than guessing that the interval is negative.

Subtract breaks without decimal confusion

If a shift lasts 8 hours 30 minutes and includes a 45-minute break, the net working duration is 7 hours 45 minutes. Convert both durations to minutes first: 510 − 45 = 465 minutes. This avoids treating 30 minutes as the decimal .30 of an hour; 30 minutes is .5 hours.

State what the duration means

This is elapsed clock time. It does not decide paid hours, overtime, payroll rounding, travel breaks, or a time-zone conversion. A duration spanning daylight-saving changes may need a timezone-aware date-time calculation rather than two clock times alone.

FAQs

How many hours are between 2:15 PM and 5:45 PM?

There are 3 hours and 30 minutes, or 3.5 decimal hours. The minute form is usually clearer for a schedule.

How do I calculate an overnight shift?

Add 24 hours to the end time when it falls after midnight, then subtract the start time. For 10:30 PM to 2:15 AM, the duration is 3 hours 45 minutes.

Is 30 minutes equal to 0.30 hours?

No. Thirty minutes is 0.5 hours. Decimal hours use minutes divided by 60.

Does duration calculation include a break?

Only if you leave it in the elapsed interval. Subtract an unpaid or excluded break separately when you need net working time.