Time Duration Calculator

Calculate the time between two dates or times instantly. Free duration calculator: days, hours, minutes, seconds and business days. In-browser.

By

Advertisement

Calculate the Time Between Dates and Times

This time duration calculator works out the exact time between two dates, or between two times on the same day, and reports the answer four ways at once: as a compact d h m s string, and as decimal totals in days, hours, minutes, and seconds. It also counts the business days in the span. Enter a start date and time, enter an end date and time, and the result appears immediately—there is no submit button, no signup, and no server round trip. All arithmetic runs in your browser.

Beyond simple duration, the tool has four modes. Calculate Duration measures the gap between two moments. Add Time and Subtract Time shift a starting date forward or backward by a number of days, hours, minutes, and seconds to give you a resulting date and time. Convert Units takes a duration you already know and expresses it in every unit, which is the fastest way to answer questions such as “how many hours is 3 days and 14 hours?” or “how many seconds is 45 minutes?”

What the Duration Result Shows

When you calculate the time between two dates, the result panel gives you several representations of the same span, because different tasks need different units.

OutputExample for 2026-03-01 09:00 → 2026-03-14 17:30
Compact duration13d 8h 30m
Total days (decimal)13.35
Total hours (decimal)320.50
Total minutes19,230.00
Total seconds1,153,800
Business days10

The decimal totals are what you paste into a timesheet, an invoice, or a spreadsheet. The compact form is what you paste into a ticket or a status update. A copy button next to the result puts the compact form on your clipboard in one click.

Business Days Between Two Dates

Alongside the raw duration, the tool counts business days by walking the calendar day by day from the earlier date to the later one and counting every day that is not a Saturday or a Sunday. The count is inclusive of both endpoint days. In the example above, 1 March to 14 March 2026 spans 14 calendar days, of which 10 are weekdays.

Two things this count deliberately does not do: it does not subtract public holidays, which vary by country and by company, and it does not prorate partial days. If you need a holiday-aware figure, take the weekday count from here and subtract the holidays that fall inside the range from your own calendar. For SLA and project-planning work that distinction matters, so it is worth stating explicitly rather than discovering it later.

Time Between Two Times

You do not need two different dates. To measure the time between two times on the same day—a shift, a maintenance window, a meeting that overran—set the same date on both sides and enter the two clock times. A shift from 22:15 to 06:45 that crosses midnight is handled by advancing the end date by one day; the calculator will then report 8h 30m. If you enter an end that precedes the start without adjusting the date, the tool flags it with an “end date is before start date” warning and shows the magnitude of the negative span rather than silently returning a wrong positive number.

Times are interpreted in your computer’s local timezone on both sides. That is the right behaviour for timesheets and local scheduling, but it means the calculator is not the right tool for spans that cross timezones. For that, and for finding meeting windows across regions, use the world clock and timezone meeting planner.

How to Use the Time Duration Calculator

  1. Pick a mode from the four buttons at the top: Calculate Duration, Add Time, Subtract Time, or Convert Units.
  2. Enter the start date and time. The clock field is optional and defaults to 00:00 if you leave it blank, so a pure days-between-two-dates calculation needs only the two date fields. A “now” shortcut fills both fields with the current moment.
  3. Enter the end date and time the same way. The result updates as soon as both dates are valid.
  4. Read the result panel for the compact duration, the four decimal unit totals, and the business-day count.
  5. Copy the answer with the copy button, or copy the page URL—your inputs are encoded into the query string, so the link reproduces the exact calculation for anyone you send it to.
  6. Use Reset All to clear every field and strip the parameters from the URL.

In Add or Subtract mode the layout changes slightly: you supply one starting date and time plus a quantity of days, hours, minutes, and seconds, and the tool returns the resulting date and time in both a human-readable form and an ISO date and time you can paste into code or a config file.

Worked Examples

  • Project span. Kickoff 2026-01-06 at 09:00, delivery 2026-04-17 at 17:00. The result is 101d 8h, 2,432 hours, and 73 business days—the last figure being the one to compare against a sprint plan.
  • Maintenance window. Start 2026-02-14 at 23:00, end 2026-02-15 at 04:30. The result is 5h 30m, or 19,800 seconds, which is what you would plug into a downtime credit calculation.
  • Deadline from a duration. Switch to Add Time, set the base to the moment a ticket was raised, add 4 hours for a standard SLA, and read off the exact due timestamp instead of doing clock arithmetic in your head.
  • Retention question. Switch to Convert Units, enter 30 days, and read 720 hours, 43,200 minutes, and 2,592,000 seconds—the last being the value most retention and cache-TTL settings expect.

Common Duration Conversions

Convert Units mode handles arbitrary combinations, but these are the values people look up most often.

DurationHoursMinutesSeconds
15 minutes0.2515900
1 hour1603,600
4 hours424014,400
1 day241,44086,400
2 days482,880172,800
3 days724,320259,200
1 week16810,080604,800
30 days72043,2002,592,000

Those eight values are also available as one-click presets under “Common Recovery Time Windows”. They are labelled for recovery time objectives and retention tiers because that is where round durations get quoted most, but the conversions are general purpose—the seconds column is what you want for a cache TTL, a token lifetime, or a cron interval.

Edge Cases Worth Knowing

  • Daylight saving transitions. Calculations use JavaScript Date objects in your local timezone, so a span crossing a DST boundary reflects the real elapsed time. A “24 hour” period across a spring-forward will correctly show 23 hours of elapsed time, not 24. That is physically accurate but occasionally surprising.
  • Leap years. February 29 is handled natively; a duration crossing 2028-02-29 will include that day without any special handling on your part.
  • Reversed inputs. An end earlier than the start yields a signed negative duration and an on-screen warning rather than an error.
  • Blank time fields. An empty clock field is treated as midnight, so two dates with no times give a whole-days answer.
  • Precision. Decimal totals are rounded to two places for display; the underlying arithmetic is done in milliseconds, so the seconds figure is exact.

If you are working with epoch values rather than calendar dates, the Unix timestamp converter translates between seconds-since-1970 and human dates, and the wider developer tools collection covers related date and scheduling utilities.

Frequently Asked Questions

How do I calculate the time between two dates?+

Choose Calculate Duration, enter the start date (and optionally a time), then the end date and time. The tool immediately shows the span as a compact d h m s value plus decimal totals in days, hours, minutes, and seconds, along with the number of business days in the range.

Does it count business days between two dates?+

Yes. Every duration result includes a business-day count that excludes Saturdays and Sundays and includes both endpoint days. Public holidays are not deducted, since they differ by country and organisation.

How many hours are between two dates?+

The result panel reports total hours as a decimal alongside days, minutes, and seconds, so you never need to convert manually. For example, 13 days and 8.5 hours is shown as 320.50 hours.

Can I add or subtract time from a date?+

Yes. Add Time and Subtract Time modes take a starting date and time plus a quantity of days, hours, minutes, and seconds, then return the resulting timestamp in both readable and ISO formats.

Are daylight saving time changes handled correctly?+

Yes. Durations are computed from real elapsed milliseconds in your local timezone, so a span crossing a DST change reports the true elapsed time rather than a naive calendar difference.

Can I share a calculation with someone else?+

Yes. Your inputs are encoded into the page URL as you type, so copying the address bar and sending it reproduces exactly the same calculation on their screen.

Does the calculator handle different timezones?+

No—both sides are interpreted in your device’s local timezone. For cross-timezone comparisons and meeting scheduling, use the world clock and timezone meeting planner instead.

Is any data sent to a server?+

No. Every calculation runs in your browser. Nothing you enter is transmitted or stored.

How many seconds are in 30 days?+

2,592,000 seconds, which is 720 hours or 43,200 minutes. Convert Units mode will produce that and any other combination you enter.

How do I calculate the number of days between two dates?+

Enter the earlier date as the start and the later date as the end, then read the days figure in the totals strip. The calculator returns the exact number of days between the two dates — exclusive of the start day — with leap years and varying month lengths handled automatically, so no manual counting is needed.

Related tools

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results.