Time Duration Calculator

Enter a start and an end — each a date and a clock time — to get the elapsed time in days, hours, minutes and seconds, plus totals in decimal days, hours and minutes.

Blank date = today; blank time = midnight.

Result

Duration
2 days, 8 hours, 25 minutes
  • FromMonday, November 23, 2026, 9:15 AM
  • ToWednesday, November 25, 2026, 5:40 PM
  • Hours:minutes:seconds56:25:00
  • In days2.3507
  • In hours56.4167
  • In minutes3,385
  • In seconds203,100
  • The period crosses midnight 2 times.
  • Clock time without time zones: a daylight-saving change inside the period is not adjusted for, so real elapsed time can differ by an hour.

What this calculator measures

A time duration is the elapsed time between two moments. Unlike a simple day count, it includes the time of day, so it can tell you that a flight, a shift, a rental or an experiment lasted 2 days, 8 hours and 25 minutes — and convert that into decimal hours or total minutes for billing and reports.

How to use it

  1. Enter the start date and start time.
  2. Enter the end date and end time.
  3. Read the duration broken into days, hours, minutes and seconds, along with the totals.

A blank date means today and a blank time means midnight (00:00), so for a duration within today you only need the two times. Times can include seconds if your browser shows a seconds box.

How the duration is calculated

Each date and time is turned into a single point on a continuous timeline: the number of seconds since a fixed reference. The duration is the end point minus the start point. That number of seconds is then split into whole units:

  • days = ⌊seconds ÷ 86,400⌋
  • hours = ⌊remaining seconds ÷ 3,600⌋
  • minutes = ⌊remaining seconds ÷ 60⌋
  • seconds = what’s left

Leap days are handled naturally because dates are real calendar dates: noon on February 28, 2024 to midnight on March 1, 2024 is 36 hours, since February 29 sits in between.

Worked example

From 9:15 AM on Monday, November 23, 2026 to 5:40 PM on Wednesday, November 25, 2026:

  • Elapsed seconds: 203,100
  • 203,100 ÷ 86,400 = 2 days, with 30,300 seconds left
  • 30,300 seconds = 8 hours (28,800) and 1,500 seconds = 25 minutes
  • Duration: 2 days, 8 hours, 25 minutes
  • In hours: 56.4167; in minutes: 3,385; in hh:mm:ss: 56:25:00

Common uses

  • Travel: the gap between departure and arrival, once both are in the same time zone.
  • Billing: consultants and repair shops converting a job’s start and finish into billable decimal hours.
  • Rentals and parking: checking whether a car or equipment rental ran past a 24-hour boundary.
  • Science and sport: total elapsed seconds for an experiment, a fast or an endurance event.

Interpreting the results

Use days–hours–minutes for describing an interval to people, decimal hours for timesheets and invoices, and total minutes or seconds for lab work, sports timing or data logging. The note under the result tells you how many times the period crossed midnight, which is a quick sanity check that you entered the right dates.

Limitations

The calculator uses clock time without time zones. It does not know where the start and end happened, so it cannot correct for daylight-saving changes or for travel between time zones; convert both moments to the same zone first. Durations are exact to the second. To add a duration to a date instead, use a time calculator; to count whole days only, a day counter is simpler; and for someone’s age, try the age calculator.

Frequently asked questions

How do I calculate time that goes past midnight?

Give the end the next day's date. For example, 10:30 PM on December 31 to 6:15 AM on January 1 is 7 hours 45 minutes. If you only have clock times for a work shift, the hours calculator assumes the next day automatically.

Why do I get an error when the end is before the start?

A duration cannot be negative, so the end must be the same as or later than the start. Usually the end date needs to be one day later.

Does the calculator adjust for daylight saving time?

No. It measures clock time without time zones, so every day is exactly 24 hours. If clocks changed during your period, the real elapsed time is one hour more or less.

How do I convert the result to decimal hours?

The result lists "In hours" to four decimal places. For example, 56 hours 25 minutes is 56.4167 hours, because 25 ÷ 60 = 0.4167.

Last reviewed: