Time Duration Calculator

Find the time between two dates and times, or add and subtract a duration from a time.

Duration between two times

Duration
–
Total hours
–
Total minutes
–

Add or subtract time

Result
–
Embed this calculator on your website (free)

Paste this code into your website or blog. Free to use, please keep the credit link.

How to calculate the time between two times

  1. Convert both times to minutes since midnight (9:15 = 555 minutes).
  2. Subtract the start from the end.
  3. If the end is on a later day, add 1,440 minutes (24 hours) per day.

For example, 21:30 on Monday to 06:15 on Tuesday is 8 hours 45 minutes, or 8.75 hours.

Adding and subtracting hours

Use the second section to find a finish time or a start time: 9:00 plus 8 hours 30 minutes is 17:30. Add days to cover multi-day jobs, flights or delivery windows. The result rolls over midnight and month ends automatically.

Durations for timesheets and invoices

The total hours figure is in decimal hours, ready to multiply by an hourly rate. For daily timesheets with breaks, use the work hours calculator; to convert hours and minutes, use the hours to decimal converter.

Durations use your device's time zone, so a period that crosses a daylight saving change shows the real elapsed time (one hour more or less).

Frequently asked questions

How do I calculate hours between two times?

Subtract the start time from the end time. If the result is negative, the end is on the next day: add 24 hours.

How many hours is 9am to 5pm?

8 hours. From 9:00 to 17:30 it's 8.5 hours.

What time is it 8 hours from now?

Enter the current date and time in the second section and add 8 hours.

Does it work across midnight?

Yes. Set the end date to the next day, and the duration includes the time after midnight.

Last updated November 2026