Enter two dates and times to get the exact duration in hours, minutes and decimal days, with a full days-hours-minutes breakdown.

Time Duration Calculator

The exact time between any two dates and clock times - in hours, minutes and a clear days, hours and minutes breakdown.

Free to use Exact to the minute Dates plus clock times Save PDF - PNG - Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for start date.

First date of the period.

min

Enter a valid value for start time (minutes after midnight).

9:00 am = 540, noon = 720, 6:30 pm = 1110.

Enter a valid value for end date.

Last date of the period.

min

Enter a valid value for end time (minutes after midnight).

10:30 am = 630.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Time Duration Calculator tinyexe.comFree online calculators

TinyExe · Time Duration Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Start date

—

Start time (minutes after midnight)

—

End date

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Time Duration Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To find the duration between two dates and times, count the whole days between the dates, multiply by 1,440 minutes, then add the difference between the two clock times. For example, 9:00 am on 1 January to 10:30 am on 3 January is 2,970 minutes, which is exactly 49.5 hours.

      • 1 day = 24 hours = 1,440 minutes
      • 1 week = 168 hours
      • Duration in hours = total elapsed minutes divided by 60

      Useful duration conversions

      Reference values for this calculator.

      DurationHoursMinutes
      1 day241,440
      1 week16810,080
      8-hour workday8480
      30 days72043,200

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Total minutes = (End date - Start date) x 1440 + (End time - Start time in minutes); Hours = Total minutes / 60

      Enhancement: accepts a clock time on each date (as minutes after midnight) as well as whole dates, and reports hours, minutes, decimal days and a days/hours/minutes breakdown in one run, so date-only and shift-length questions are both answered exactly.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Two days and a morning

      1 Jan 2026 at 9:00 am (540) to 3 Jan 2026 at 10:30 am (630)

      CalculationSteps
      Days = 2, so 2 x 1,440 = 2,880 minutes. Clock difference = 630 - 540 = 90 minutes. Total = 2,970 minutes = 49.5 hours.49.5 hours (2 days, 1 hour, 30 minutes).

      Result

      Example 2

      A 90-minute appointment

      Same day, midnight (0) to 1:30 am (90)

      CalculationSteps
      Days = 0. Clock difference = 90 minutes. Total = 90 minutes = 1.5 hours.1.5 hours.

      Result

      Example 3

      Exactly one week

      1 Mar 2026 at 00:00 to 8 Mar 2026 at 00:00

      CalculationSteps
      Days = 7, so 7 x 1,440 = 10,080 minutes = 168 hours.168 hours (7 days).

      Result

      How to use this calculator

      Step 1

      Enter the start date.

      Step 2

      Enter the start clock time as minutes after midnight (9:00 am = 540).

      Step 3

      Enter the end date and end clock time the same way.

      Step 4

      Press Calculate to see total hours, total minutes and the days/hours/minutes breakdown.

      In short: Time duration is the elapsed time between a start instant and an end instant, usually expressed in hours, minutes and seconds or as a decimal number of days.

      Frequently asked questions

      How do I convert a clock time to minutes after midnight?

      Multiply the hour (24-hour clock) by 60 and add the minutes: 9:30 am is 9x60+30 = 570, and 6:45 pm is 18x60+45 = 1125.

      Does this count whole days or exact elapsed time?

      Exact elapsed time. Two dates two days apart at the same clock time give exactly 48 hours; different clock times add or subtract the difference.

      How many hours are in a week?

      168 hours (7 x 24). A 30-day month is 720 hours and a non-leap year is 8,760 hours.

      What if the end is before the start?

      The calculator reports an error rather than a negative duration, so you can swap the dates or fix the times.

      Does it handle daylight saving time?

      It uses calendar dates and clock times as entered, with no timezone database, so a period spanning a clock change is measured in nominal clock hours, not adjusted solar hours.

      About this calculator

      A time duration calculator measures the exact elapsed time between a start date-and-time and an end date-and-time, reporting it as total hours, total minutes, decimal days and a days/hours/minutes breakdown.

      Counting duration by hand goes wrong in two predictable places: the number of days in each month, and borrowing across midnight when the end clock time is earlier than the start clock time. This calculator removes both by converting each date to a day count and each clock time to minutes after midnight, then subtracting once.

      Results are shown several ways because different jobs need different units. Payroll and billing usually want decimal hours, project plans want days, and people describing a trip or a wait usually want the days, hours and minutes breakdown. All four figures here describe the same single duration, just in different units.

      The calculator works in nominal clock time: the times you type are taken at face value. That is exactly right for shifts, bookings and most planning, but a period that crosses a daylight-saving clock change will differ by one hour from a timezone-aware world-clock measurement.

      Use it for shift and project lengths, leave and billing periods, equipment run-times, rental periods, countdown planning, and any question of the form 'how long is it from X to Y?' where both a date and a clock time matter.

      How to calculate it yourself

      Step 1

      Count the whole days between the start date and the end date.

      Step 2

      Multiply that day count by 1,440 to get minutes.

      Step 3

      Work out the end clock time minus the start clock time, both in minutes after midnight.

      Step 4

      Add the two figures for total elapsed minutes, then divide by 60 for hours.

      Real-life examples

      Overnight flight layover

      A traveller lands at 10:00 pm on 10 June and departs at 6:00 am on 11 June and wants the layover length.

      Start minutes 1,320, end minutes 360, one day apart: (1 x 1,440) + (360 - 1,320) = 480 minutes = 8 hours.

      The layover is exactly 8 hours.

      Contractor billing a job

      A contractor starts work at 8:30 am on Monday 5 January 2026 and finishes at 4:30 pm on Friday 9 January 2026, billing elapsed on-site days as decimal hours for the invoice summary.

      Days = 4, clock difference = 990 - 510 = 480 minutes. Total = 4 x 1,440 + 480 = 6,240 minutes = 104 hours = 4.33 decimal days.

      104 hours elapsed across the working week.

      Ideas & use cases

      • Compare rental options: run pickup-to-return durations for two hire quotes to see which '3-day' deal actually gives more hours before late fees apply.
      • Plan a countdown: enter today and an event date to get the exact hours remaining for scheduling preparation work.
      • Audit a timesheet: total a shift that runs past midnight by using the next calendar date with the early-morning clock time.

      Limitations & sources

      • Uses the dates and clock times exactly as entered with no timezone or daylight-saving database, and times are entered as minutes after midnight rather than with an am/pm picker.

      Sources: Standard time arithmetic (1 day = 1,440 minutes); cross-checked against calculator.net time duration calculator behaviour

      Time Duration Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results