Time Tools

Duration Calculator

Work out the time between two dates in days, hours, and minutes, with calendar months, totals, and working days.

Start here Set the start date and time, then the end.

Both values are read in your own time zone, UTC.

7 days

Calendar
0 years, 0 months, 7 days
Calendar days
7
Working days
5 (Monday to Friday)
Total hours
168
Total minutes
10080
Total seconds
604800

Understand the format

How Duration Calculator works

There are two right answers to "how long between these dates", and mixing them up is where billing, SLA, and holiday calculations go wrong.

Elapsed time and calendar days are different questions

Ask how long from 31 January to 31 March and there are two defensible answers. A calendar says 59 days. A stopwatch says 58 days and 23 hours, because the clocks went forward an hour in between. Neither is a bug: one measures the wall calendar, the other measures physical time.

This page reports both, and tells you when they disagree. Which one you want depends on the question. Billing by the hour and measuring an SLA want elapsed time. Booking leave, counting notice periods, and working out an age want calendar days, because people count mornings, not seconds.

Months and years are not fixed lengths

A month is between 28 and 31 days, and a year is 365 or 366. That makes "one month" meaningless as a duration in seconds: one month from 31 January is 28 February in most years, and adding thirty days gives 2 March instead. Any code that treats a month as 30 days will produce dates that drift.

The calendar breakdown here counts the way a person does, taking whole months first and then the remaining days. That is why it can report "2 months, 0 days" for a range whose elapsed time is not a round number of hours.

Working days need a definition before they need a formula

The working-day count here is whole Monday-to-Friday days in the range. It knows nothing about public holidays, which vary by country, region, and sometimes by employer, and nothing about a working week that runs Sunday to Thursday, as it does in much of the Middle East.

That is a deliberate limit rather than an oversight. A working-day figure is only meaningful against a stated calendar, so use this as a starting point and subtract the holidays that apply to the people involved.

Step by step

How to use Duration Calculator

  1. Set the start date and time, then the end.
  2. Read the headline for elapsed time, then the calendar breakdown beneath it.
  3. Compare the calendar days with the elapsed days if a daylight saving warning appears.
  4. Use the working-day count as a starting point, then subtract public holidays yourself.

The calculation runs in your browser using the Date and Intl APIs. The dates you enter are not transmitted or stored.

Worked examples

Duration Calculator examples explained

A range that crosses a clock change

Input

31 January 2026 00:00 to 31 March 2026 00:00, UK time

Result

Elapsed 58 days 23 hours; calendar 59 days

British clocks moved forward on 29 March, so one hour of the calendar never happened. Both figures are correct.

A working week

Input

17 August 2026 00:00 to 24 August 2026 00:00

Result

7 days elapsed, 7 calendar days, 5 working days

The working-day count skips the Saturday and Sunday, but knows nothing about bank holidays.

Reference

Which figure answers which question

Which figure answers which question
QuestionUseWhy
How much time actually passed?Elapsed days and hoursPhysical time, unaffected by clock changes.
How many days on the calendar?Calendar daysCounts dates, so a clock change does not shorten a day.
How old is this?Years, months, daysMatches how people state ages and anniversaries.
How long did the job run?Total seconds or minutesPrecise and unit-free for machine comparison.
How many business days?Working daysWeekdays only. Subtract public holidays yourself.

Practical Guide

How teams use Duration Calculator

Common use cases

  • Measure how long an incident lasted, or how long a batch job ran.
  • Count the days between a contract date and a deadline.
  • Work out an age, a notice period, or a subscription length.
  • Check a leave request against the number of working days it consumes.

Checks before trusting the result

  • Decide whether you want elapsed time or calendar days before quoting a number.
  • Both values are read in your own time zone; convert first if the dates belong to somewhere else.
  • Working days exclude weekends only, never public holidays.

Troubleshooting

Common mistakes and how to fix them

Treating a month as 30 days in code.
Add calendar months with a date library instead. One month after 31 January is 28 February, not 2 March.
Dividing an elapsed millisecond count by 86,400,000 to get days.
That is correct for physical time but wrong for calendar days across a clock change. Pick the figure that matches your question.
Quoting working days without saying whose calendar.
Public holidays differ by country and region, and the weekend is not Saturday and Sunday everywhere.
Comparing two dates from different time zones without converting.
Convert both to the same zone, or to UTC, before subtracting.

FAQ

Duration Calculator questions, answered

Why is the elapsed time not a whole number of days?

Because the clocks changed inside the range. A day that loses an hour to daylight saving really is 23 hours long, so the elapsed count and the calendar count differ by that hour.

Does it count public holidays?

No. The working-day figure is weekdays only, because holidays vary by country, region, and employer. Subtract the ones that apply to you.

Which time zone are the dates read in?

Your own, as reported by your browser. If the dates belong to another zone, convert them first with the Time Zone Converter.

What happens if the end is before the start?

The duration is reported with a note that it runs backwards, rather than silently showing a negative number or swapping the values without telling you.

How are months counted?

By calendar. Whole months are taken first, then the remaining days, which is how people describe ages and notice periods.

Go deeper

Specifications and guides