Time Duration Calculator: Hours Between Two Times or Dates

Use this time duration calculator to find the hours and minutes between two times or dates, add or subtract time from a date, or count the time left until, or passed since, an event. It is built for anyone who needs to know how long something took, including agencies and consulting firms that measure how long client work really took.

Time duration calculator

💡 Quick answer

  • On the same day, the duration is the end time minus the start time: 9:45 AM to 5:20 PM is 7 hours and 35 minutes (7.58 decimal hours).
  • When the period crosses midnight, enter both dates: Nov 19 at 10:00 PM to Nov 20 at 6:00 AM is 8 hours. Without dates, both times are read as the same day.
  • Across several days, the result shows days and hours: Jan 1 at 9:00 AM to Jan 3 at 5:00 PM is 2 days and 8 hours (56 hours).
  • Daylight saving time follows the time zone of the device, so a period that includes a clock change is one hour shorter or longer than the clock suggests.

How is the time between two times calculated?

The duration is the end time minus the start time. The calculator converts both times to minutes, subtracts them and shows the result in hours and minutes, together with the same value as decimal hours, total minutes and total seconds.

Duration = end time − start time
Minutes = (end hour × 60 + end minutes) − (start hour × 60 + start minutes)

✨ Example: From 9:45 AM to 5:20 PM, the end is 17:20 and the start is 9:45. 17 × 60 + 20 = 1,040 minutes and 9 × 60 + 45 = 585 minutes. The difference is 455 minutes, which is 7 hours and 35 minutes, or 7.58 decimal hours.

The first tab also accepts dates. When both dates are entered, the result includes whole days: from Jan 1 at 9:00 AM to Jan 3 at 5:00 PM is 2 days and 8 hours, or 56 hours.

How is the duration calculated when the time crosses midnight?

A shift from 10:00 PM to 6:00 AM crosses midnight, so the calculator needs to know that the end falls on the next day. Entering both dates does that. Without dates, both times are read as the same day, and an end that is earlier than the start is flagged: 10:00 PM to 6:00 AM shows 16 hours with the note that the end is before the start.

✨ Example: A night shift starts on Thursday, Nov 19 at 10:00 PM and ends on Friday, Nov 20 at 6:00 AM. With both dates entered, the duration is 8 hours.

For a full week of shifts with unpaid breaks, the hours calculator subtracts the breaks and totals the days.

How is time added to or subtracted from a date?

The second tab starts from a date and time, then adds or subtracts days, hours and minutes. Decimals are accepted, so 1.5 days is the same as 1 day and 12 hours.

✨ Example: Adding 36 hours to Friday, Nov 20, 2026 at 9:00 AM gives Saturday, Nov 21, 2026 at 9:00 PM. Subtracting 10 days from Friday, Nov 20, 2026 at 5:00 PM gives Tuesday, Nov 10, 2026 at 5:00 PM.

How much time is left until, or has passed since, a date?

The third tab compares a chosen date and time with the current moment. It shows how much time is left until a future date or how much has passed since a past one, and the result updates every minute. It suits deadlines, launch dates and the time elapsed since a project started.

Does daylight saving time change the duration?

Yes, when the period includes a clock change. According to NIST, daylight saving time in the United States begins at 2:00 a.m. local time on the second Sunday of March, when clocks jump to 3:00, and ends at 2:00 a.m. on the first Sunday of November, when clocks go back to 1:00. The calculator counts real elapsed time using the time zone of the device.

✨ Example: On a device set to US Eastern time, midnight to noon on Sunday, Mar 8, 2026 is 11 hours, and the same span on Sunday, Nov 1, 2026 is 13 hours.

How can a team record how long work takes?

A calculator is enough for a single period. To measure how long client work takes across a team, TrackingTime is time tracking software that runs as the operational back office for agencies and consulting firms. Each hour is tracked once, and timesheets, approvals and time reports come from that same record.

Frequently Asked Questions About Time Duration

How do you calculate the time between two times?

Subtract the start time from the end time. From 9:45 AM to 5:20 PM, convert both times to minutes (585 and 1,040), subtract to get 455 minutes, and divide by 60: 7 hours and 35 minutes. The time duration calculator does these steps and also shows the result as decimal hours, minutes and seconds.

How do you calculate the duration when the end time is earlier than the start time?

The end falls on the next day. Adding 24 hours to the end time gives the same result: for 10:00 PM to 6:00 AM, 6:00 AM becomes 30:00, and 30 − 22 is 8 hours. In the calculator, enter the date for each time. Without dates, both times are read as the same day, so 10:00 PM to 6:00 AM shows 16 hours with a note that the end is before the start.

How many hours are there between two dates?

Multiply the whole days by 24 and add any extra hours. Seven days is 168 hours, and Jan 1 at 9:00 AM to Jan 3 at 5:00 PM is 2 days and 8 hours, or 56 hours. If a clock change falls inside the period, the real elapsed time is one hour shorter or longer.

How do you convert hours and minutes to decimal hours?

Divide the minutes by 60 and add the result to the hours: 7 hours and 35 minutes is 7 + 35 ÷ 60, or 7.58 hours. The calculator shows this value next to the hours and minutes. For other values, the hours to decimal calculator converts them directly.

How do you add or subtract time from a date?

Open the second tab, enter a start date and time, choose to add or subtract, and enter the days, hours and minutes. Adding 36 hours to Friday, Nov 20, 2026 at 9:00 AM gives Saturday, Nov 21, 2026 at 9:00 PM. Subtracting 10 days from Nov 20 at 5:00 PM gives Tuesday, Nov 10, 2026.

Does the time duration calculator account for daylight saving time?

Yes, when dates are entered. It counts real elapsed time using the time zone of the device, so a period that includes a clock change is one hour shorter or longer. On a device set to US Eastern time, midnight to noon on Mar 8, 2026 is 11 hours, and on Nov 1, 2026 it is 13 hours.

How do you calculate the time until a date?

Open the third tab and enter the date and time. The calculator shows how much time is left until that moment, or how much has passed since it, and updates every minute.

Which time formats does the calculator accept?

Both 12-hour and 24-hour times. Entries such as 9:30 pm, 21:30 and 9h30 are accepted. An invalid entry shows a message with an example, such as 9:00 AM or 17:30.

What is the difference between this calculator and the hours calculator?

The time duration calculator measures one period between two times or dates. The hours calculator totals a work week, subtracts breaks and handles overnight shifts.

How can a team track how long work takes without subtracting times by hand?

A timer or timesheet records the time as the work happens, so there is nothing to calculate afterward. In TrackingTime, those entries feed timesheets, approvals and time reports, which agencies and consulting firms use to see how long client work took.

What is a time duration calculator?

A time duration calculator, also called a time elapsed calculator or time span calculator, finds how much time passes between two moments. You enter a start and an end, and it returns the gap in days, hours and minutes, plus total hours, minutes and seconds.

Does the time duration calculator subtract breaks?

No. It measures the full span between two moments. To remove an unpaid break from a workday, use the hours calculator, or subtract the break from the total by hand.

Can I add or subtract decimal hours, such as 1.5 hours?

Yes. On the Add or subtract time tab, the days, hours and minutes fields accept decimals, so 1.5 hours adds 1 hour and 30 minutes. To convert a result to decimal hours or back, use the decimal hours converter.

Is my data saved or sent anywhere?

Your entries stay in your browser and are saved there so they are still available when you come back. Nothing is sent to our servers, and you do not need an account to use the calculator.