What is a date duration calculator?
A date duration calculator measures the length of the span between two calendar dates: you give it a start date and an end date, and it returns how much time sits between them, as a calendar breakdown in years, months and days, as a total number of days, and as total weeks plus remaining days, with an optional inclusive count that counts both the first and the last day. People arrive at it with plain questions. How long is it until my deadline? How long did that project actually take? How old is this, exactly, in years, months and days? A days between dates calculator, a date difference calculator and a date duration calculator all start from the same subtraction, but they lead with different answers, and the lead answer is what this page is about.
This page leads with the calendar breakdown, because that is how people actually describe durations. Nobody says a baby is 327 days old; they say ten months and three weeks. Nobody describes a tenancy as 302 days; they say nine months and twenty-nine days, or near enough ten months. The total days figure is still here, and it matters, because deadlines, interest, notice periods and countdowns run on raw day counts. But the headline is the breakdown, the total weeks figure sits beside it for plans that are quoted in weeks, and the inclusive toggle covers the one counting argument that causes more confusion than everything else in date arithmetic put together: whether the first and last days count.
The guide is built around three worked examples so you can verify everything before trusting it with your own dates. The calculator opens pre-filled with 1 January 2026 to 24 November 2026, a span of 327 days. The second example crosses the leap day, 29 February 2024 to 28 February 2025, a span of 365 days with the least obvious breakdown on this page. The third is the simplest possible check, 24 November 2026 to 24 November 2027, exactly one year and 365 days. If all three check out by hand, the method is doing what it claims, and every other pair of dates follows the same arithmetic.
How this date duration calculator works
The engine does two counts from the same pair of dates, and every figure it shows comes from one of those two counts, so the figures can never contradict each other. The first count is the total: both dates are converted to a day number, a count of days from a fixed point in the calendar, and the start day number is subtracted from the end day number. That subtraction is exact, because day numbers already contain every month length and every leap day in between. The conversion is done with UTC date arithmetic on the year, month and day numbers alone, never with your local clock time, so the result cannot shift by an hour or a day because of your time zone or a daylight saving change.
The second count is the calendar breakdown, worked the way a careful person works it on paper. The years, months and days start as the plain differences between the two dates: end year minus start year, end month minus start month, end day minus start day. If the days figure comes out negative, one month is borrowed: the days are topped up by the length of the month just before the end month, and the months figure drops by one. If the months figure then comes out negative, one year is borrowed the same way: twelve months are added and the years figure drops by one. What remains is the largest whole number of years, then the largest whole number of months, then the days left over, which is exactly the breakdown a person means when they state a duration in calendar terms.
Total weeks are a third reading of the first count: total days divided by seven, rounded down, with the remainder shown as days. The inclusive count is a fourth reading: the standard total plus one, counting both endpoints. Four readings, one span. If the breakdown says 0 years, 10 months and 23 days, the total must say 327 days, the weeks must say 46 weeks and 5 days, and the inclusive count must say 328, because all four are the same quantity described four ways. Tools that calculate each figure by a separate shortcut can drift apart; this one cannot, and that is a deliberate design choice, not an accident.
Everything runs in your own browser. No date you enter is sent anywhere, stored anywhere or attached to any account, because there is no account and no server-side step in the calculation at all. The page works the same offline as online once it has loaded, which is as it should be for arithmetic this simple.
The method, worked step by step
Worked example one: 1 January 2026 to 24 November 2026. The total first. Counting forward on the calendar, January contributes 30 remaining days after the 1st, and the months February to October contribute 273 days, and November contributes 24, which adds to 327 days in total. The breakdown by the borrowing method: years are 2026 minus 2026, which is 0. Months are 11 minus 1, which is 10. Days are 24 minus 1, which is 23. Nothing is negative, so nothing is borrowed, and the breakdown is 0 years, 10 months and 23 days. Check it forwards: 1 January plus 10 months is 1 November, and 1 November plus 23 days is 24 November. The weeks reading is 327 divided by 7, which is 46 full weeks, 322 days, with 5 days left over. The inclusive count is 327 plus 1, which is 328.
Worked example two: 29 February 2024 to 28 February 2025. The total is 365 days: the span starts on the leap day itself, runs through the rest of 2024 and into February 2025, and contains no second leap day. The breakdown is where this example earns its place. Years are 2025 minus 2024, which is 1. Months are 2 minus 2, which is 0. Days are 28 minus 29, which is minus 1, so a month is borrowed: the days are topped up by the length of January 2025, which is 31, giving 30 days, and the months drop to minus 1. That is negative too, so a year is borrowed: the months become 11 and the years become 0. The final breakdown is 0 years, 11 months and 30 days. Check it forwards: 29 February 2024 plus 11 months is 29 January 2025, and 29 January plus 30 days is 28 February. It is not stated as 1 year, because the month-first counting never completes a twelfth month; a full calendar year from a leap day is the one case where honest conventions genuinely differ, and this page follows the borrowing method and says so.
Worked example three: 24 November 2026 to 24 November 2027. Years are 1, months are 0, days are 0, and nothing needs borrowing, so the breakdown is exactly 1 year. The total is 365 days, not 366, because the span contains no 29 February: February 2027 is an ordinary 28-day February. In weeks that is 52 weeks and 1 day. This example is the standing reminder that a year is a calendar unit, not a fixed number of days, and that the two figures can both be right at once.
Common durations table
The table below collects spans people commonly need: a school year, a leap day span, a calendar year with and without a leap day inside it, and the three worked examples from the guide. Every row was calculated with the same method as the examples above, so you can use any row to sanity-check a result of your own. The inclusive column is the standard total plus one, counting both the first and the last day.
| Start date | End date | Breakdown | Total days | Weeks | Inclusive days |
|---|---|---|---|---|---|
| 01/01/2026 | 24/11/2026 | 0 years, 10 months, 23 days | 327 | 46 weeks, 5 days | 328 |
| 29/02/2024 | 28/02/2025 | 0 years, 11 months, 30 days | 365 | 52 weeks, 1 day | 366 |
| 24/11/2026 | 24/11/2027 | 1 year, 0 months, 0 days | 365 | 52 weeks, 1 day | 366 |
| 01/01/2024 | 01/01/2025 | 1 year, 0 months, 0 days | 366 | 52 weeks, 2 days | 367 |
| 15/03/2026 | 15/09/2026 | 0 years, 6 months, 0 days | 184 | 26 weeks, 2 days | 185 |
| 31/01/2026 | 28/02/2026 | 0 years, 0 months, 28 days | 28 | 4 weeks, 0 days | 29 |
| 25/12/2025 | 01/01/2026 | 0 years, 0 months, 7 days | 7 | 1 week, 0 days | 8 |
| 01/09/2026 | 30/06/2027 | 0 years, 9 months, 29 days | 302 | 43 weeks, 1 day | 303 |
| 14/02/2026 | 14/08/2026 | 0 years, 6 months, 0 days | 181 | 25 weeks, 6 days | 182 |
| 01/01/2026 | 31/12/2026 | 0 years, 11 months, 30 days | 364 | 52 weeks, 0 days | 365 |
Two rows deserve a second look. The 31 January to 28 February row shows a breakdown of 28 plain days, not one month, because the borrowing method tops the days up by the 31 days of January and the month is never completed: 31 January plus one calendar month would land on 28 February only by clamping, and this calculator counts whole months strictly. The first and last rows share the same breakdown shape for different reasons, and both are correct, which is precisely why the total days column sits beside the breakdown: the breakdown describes the span, and the total measures it, and honest answers need both.
Reading your result: breakdown, totals, weeks and inclusive
The headline result is the breakdown, stated as years, months and days, the way you would say the duration out loud. Under it sit the totals, and each has its own job. Total days is the deadline and countdown number, the figure contracts, notice periods and countdowns run on. Total weeks, with the remaining days shown separately, is the planning number, the unit of tenancies, courses, training programmes and project timelines that are quoted in weeks. The inclusive total is the attendance and validity number, the count for spans where both the first day and the last day themselves belong to the thing being counted.
A useful habit is to read at least two of the formats before using any of them. They are conversions of one another, so they act as a built-in check: 0 years, 10 months and 23 days, 327 days, 46 weeks and 5 days, and 328 days inclusive all describe the same span, and if a figure you copied into a form or a spreadsheet does not convert back to the breakdown you remember, the copying went wrong somewhere. Catching that at the calculator is cheaper than catching it on a signed document.
One warning belongs here rather than in the fine print. The breakdown is not a set of fixed conversions. Ten months is not 300 days or 304 days in general; it is ten calendar months starting from your start date, and its length in days depends on which months they are and whether a leap day falls inside them. That is not a flaw in the breakdown; it is what a calendar duration means. When a rule, a form or a contract specifies days, use the total days. When it specifies months or years, use the breakdown. When it does not say, that ambiguity is in the document, not in the arithmetic, and it is worth resolving before you rely on either figure.
Leap years and the 29 February problem
Leap years exist because the calendar year and the solar year do not match. A year is about 365 and a quarter days long, so the Gregorian calendar adds a 29 February in years divisible by four, except century years, which must be divisible by 400. The rule is why 2000 was a leap year and 1900 was not, and why the next skipped leap day is in 2100. For duration arithmetic the only thing that matters is the practical consequence: any span that includes a 29 February is one day longer than the same span shifted to a non-leap window, and the total days figure knows it automatically because it is counted on real day numbers.
The breakdown is where leap days cause the famous argument. A child born on 29 February, a contract signed on 29 February, a subscription started on 29 February: when is the one-year mark, 28 February or 1 March in the following year? Different systems answer differently. Some clamp, treating the last day of February as the anniversary. Others roll forward to 1 March. This calculator takes the third honest route: it counts whole months strictly by the borrowing method, so 29 February 2024 to 28 February 2025 reads as 11 months and 30 days, not as one year, and the guide shows the working. If a legal or official anniversary matters to you, the rule of the relevant authority decides it, not any calculator, and the total days figure, 365, is the part of the answer nobody disputes.
For everyday spans the leap day rarely changes the breakdown at all. It adds one to the total days, it can add one to the days part of the breakdown, and it is the entire reason one calendar year can measure 366 days while the next measures 365. The table above puts the two side by side: 2024 to 2025 is 366 days, and 24 November 2026 to 24 November 2027 is 365. Both are exactly one year. Neither is a mistake.
Inclusive counting: when both endpoints count
Most date arguments are not about arithmetic at all. They are about endpoints. If a course runs from Monday to Friday, is that four days or five? The gap between Monday and Friday is four days; the course occupies five days. Both answers are correct answers to different questions, and the inclusive toggle exists so you never have to hold the distinction in your head while also doing the month arithmetic. Standard counting measures the gap, which is what deadlines, ages and elapsed time mean. Inclusive counting counts the days the span occupies, start day and end day included, which is what stays, bookings, courses, validity periods and attendance usually mean.
The difference is always exactly one day, which is why it is so easy to miss and so annoying when it surfaces. A hotel stay from 1 January to 24 November is not a realistic booking, but the arithmetic shape is the same at every scale: 327 days of gap, 328 days counted inclusively. Where the stakes are real, the rule is written down somewhere: a tenancy agreement, a notice clause, a returns policy, an exam board regulation. Read the rule first, then choose the matching count. If the document says clear days, it usually means neither endpoint counts, which is the standard total minus one, and no toggle here will rescue a misread clause, so check the wording rather than guessing.
This page shows the inclusive figure as its own labelled total whenever the toggle is on, rather than quietly changing the headline, because silently changing a counting convention is how tools create the very errors they exist to prevent. The breakdown, the standard total and the weeks always describe the gap. The inclusive total is labelled as inclusive, every time.
Reversed dates and the swap button
Enter the end date before the start date and nothing explodes, because a duration is a length, and lengths are not negative. The span from 24 November 2026 to 1 January 2026 is the same 327 days as the span forwards. What changes is only the direction, and direction is information, so this calculator does two things when it detects reversed dates: it reports the absolute duration, exactly as if the dates were in order, and it states plainly under the result that the dates were entered in reverse order, naming which date is earlier. It never shows a negative duration, and it never silently swaps without telling you.
The swap button exists for the common case behind most reversed entries, which is simply that the two dates were typed into the wrong boxes. One click exchanges them, the result is identical, and the direction note disappears because the dates are now in chronological order. If you are deliberately measuring backwards, for example counting the length of a period that ended in the past from a known end date to an earlier start, the absolute figure is already the answer you need, and the note is just the calculator keeping you informed.
Common uses: deadlines, tenancies, ages and planning
Deadlines and notice periods are the most common reason people land here, and the pattern is always the same: a start date, an end date, and a need to know whether the gap between them satisfies a rule stated in days, weeks or months. Length of service and ages are the second pattern: employment milestones, probation periods, pension and benefit questions, school entry ages and plain curiosity all reduce to the same breakdown. The years, months and days reading exists for exactly these questions, because they are stated in calendar units by the people and documents that ask them.
Beyond those, the same subtraction answers everyday questions. Tenants and landlords measure tenancy lengths and break clauses. Students and teachers measure terms, courses and revision windows, often in weeks. Project managers measure how long a phase actually took against how long it was supposed to take. Gardeners, builders and anyone working to a season measure windows between dates that the weather, not the office, chose. Anyone counting down to an event, or counting up from one, is doing date duration arithmetic whether they call it that or not.
One use deserves a caution rather than encouragement. Working out exactly how long a legal, medical or financial period has run is legitimate arithmetic, but the consequence attached to the figure, whether a claim is in time, whether a notice is valid, whether a payment is late, is set by the document and the rules behind it. Treat the number this page gives as the accurate measurement it is, and take the consequence question to the document, or to professional advice where the stakes justify it.
What this calculator cannot do
Honesty about limits is part of the tool, so here they are in one place. This calculator works on calendar dates only. It has no times of day, no time zones and no clock arithmetic: a date is a whole calendar day, and a span is counted in whole days. If your question depends on hours, for example the length of a shift, a flight connection or a parking limit, you need the Time Difference Calculator, which is built for clock spans, not this page.
It does not count working days. Saturdays, Sundays and public holidays count exactly like any other day, because this is a calendar duration tool. If your rule excludes weekends or holidays, use the Working Days Calculator or the business day count on the Days Between Dates page. It also does not add or subtract a duration from a date to find a new date; the Days Between Dates calculator covers that job, and this page deliberately leads with the breakdown, total weeks and inclusive counting instead of duplicating its pitch.
Finally, it does not decide which counting rule your situation uses. Standard or inclusive, calendar months or fixed 30-day months, the clamp or roll-forward answer to the leap day anniversary: these are conventions set by contracts, authorities and custom, and they differ. This page measures the span exactly, shows you every honest reading of it side by side, and stops there. Which reading governs your case remains, rightly, a question about your document, not about arithmetic.
Sources and References
- timeanddate.com - Date Duration Calculator and duration between dates resources
- timeanddate.com - Calendar, month lengths and date information
- Wikipedia - Gregorian calendar, the calendar system and its leap year rule
- Wikipedia - Leap year, why 29 February exists and when it occurs
- Wikipedia - ISO 8601, the international standard for writing dates
- National Institute of Standards and Technology (NIST) - Time and Frequency Division, the United States time standards authority
- Wikipedia - Calendar, how calendars count days, months and years
Every figure in this guide was calculated with this page own stated method of calendar date arithmetic, so you can reproduce each one exactly by entering the same dates above. All seven sources above were verified as reachable (HTTP 200) when this page was published, and exactly seven sources are listed.