About the Time Duration Calculator
A time duration calculator finds the exact interval between two date-times, expressed in years, months, days, and hours. It is what you need for contract terms, service anniversaries, and any span too long to count in days alone.
The formula
Duration = end date-time − start date-timeThe result is broken into calendar units. Years and months are calendar-based rather than fixed-length, which is why a duration in months is not simply days divided by 30.
How to use this calculator
- 1Enter your Start Year. The field starts at
2020, which you can overwrite. - 2Enter your Start Month. The field starts at
1, which you can overwrite. - 3Enter your Start Day. The field starts at
1, which you can overwrite. - 4Enter your End Year. The field starts at
2026, which you can overwrite. - 5Enter your End Month. The field starts at
8, which you can overwrite. - 6Enter your End Day. The field starts at
11, which you can overwrite. - 7Read the result straight away — it recalculates as you type, so there is no button to press. Use Share to copy a link that reopens the page with your exact numbers filled in.
Worked example
| Input | Value |
|---|---|
| Start Year | 2020 |
| Start Month | 1 |
| Start Day | 1 |
| End Year | 2026 |
| End Month | 8 |
| End Day | 11 |
Result
Duration:
6 years, 222 days
79 months
344 weeks (6 days remaining)
57,936 hours
3,476,160 minutes
Those are the values the page loads with, so you can reproduce this result yourself and then change one field at a time to see what drives the outcome.
Understanding your result
There are two legitimate ways to express a long duration and they give different answers. Calendar arithmetic says 1 January 2020 to 1 March 2020 is exactly two months. Day counting says it is 60 days, which divided by 30.44 gives 1.97 months. Neither is wrong; they answer different questions.
Contracts and legal deadlines almost always use calendar units, which is why a "three month notice period" starting 31 January ends 30 April rather than after 90 days. Month-end dates create genuine ambiguity that legal drafting has to resolve explicitly.
Things worth knowing
- Calendar months and average-length months give different results. Know which your purpose requires.
- Month-end start dates create edge cases: one month after 31 January is usually taken as 28 or 29 February.
- For durations crossing daylight saving boundaries, hour counts differ from what calendar arithmetic suggests.
- ISO 8601 has a duration notation — P1Y2M3D — that removes this ambiguity in data exchange.
- Employment tenure and interest periods are calendar-based, not day-count-based, in most jurisdictions.
Frequently asked questions
How do I calculate the duration between two dates?+
Subtract the earlier from the later. Expressing the result in years, months, and days uses calendar arithmetic, which is what contracts and anniversaries rely on.
Why do different calculators give different month counts?+
Because some use calendar months and others divide days by an average month length of about 30.44. Calendar arithmetic is normally what people intend for long spans.
How is a month duration handled from a month-end date?+
One month after 31 January is generally taken as 28 or 29 February, since 31 February does not exist. Conventions vary, so contracts often specify the rule explicitly.
Does daylight saving affect duration?+
It affects hour counts. A span crossing a spring transition contains one fewer hour than the calendar dates suggest, and one more crossing an autumn transition.