Calvix

Date Difference Calculator

Count the days, weeks and working days between two dates, with a calendar breakdown that respects the fact that months are different lengths.

Live results need JavaScript. The formula and a worked example are below, so you can still follow the calculation by hand.

Days
Calendar difference
Weeks
Working days
Hours

How to use this calculator

  1. Pick a start date and an end date. The order does not matter.
  2. Choose whether to count the end date — the answer differs by one, and both conventions are correct in different situations.

How the calculation works

Two separate calculations run, because there are two different right answers.

The day count is straightforward subtraction of calendar dates. Both dates are handled with no time component, so daylight saving transitions cannot shift the result — which is why the answer is always a whole number.

The calendar breakdown counts whole months first and only converts the remainder into days. When the day of the month is smaller at the end than at the start, it borrows from the preceding month, using that month’s real length. There is no 31 February, so a start day that does not exist in the borrowed month is clamped to the last day that does.

That clamping matters. From 31 January to 1 March is “1 month, 1 day” — not a negative number of days, which is what a naive implementation produces.

A worked example

From 15 January 2026 to 25 December 2026.

Days344
Calendar difference11 months, 10 days
Weeks49.14
Working days246
Hours8,256

The calendar breakdown reaches 11 months on 15 December, leaving 10 days to the 25th.

Notice that 344 days is not 11 months at 30 days plus 10, which would be 340. Real months average slightly over 30 days, and the four-day gap is precisely why the two figures are shown separately rather than one being derived from the other.

Include the end date, or not?

Both conventions are standard, and using the wrong one is an off-by-one error with real consequences.

Exclude the end date for ordinary durations. Monday to Friday is four days. This is what you want for age, deadlines, and “how long until”.

Include both ends for anything counted in whole days of entitlement or occupancy:

  • Hotel nights and rental periods
  • Annual leave and sick days
  • Notice periods and contractual terms
  • Event durations — a three-day conference runs Monday to Wednesday

The rule of thumb: if each day is a thing you are counting, include both. If you are measuring the gap between two moments, do not.

Working days

The working-day figure counts every Monday to Friday in the range and excludes Saturdays and Sundays.

It does not deduct public holidays, because those vary by country, state and sometimes industry. If you need an exact business-day count for a legal or contractual deadline, subtract the holidays that apply where you are — typically 8 to 11 a year in the US and UK, more in much of continental Europe.

Common mistakes to avoid

Dividing days by 30 to get months. It drifts by five days across a year and more over longer periods. Months are 28, 29, 30 or 31 days, and only a calendar calculation handles that.

Assuming a year is 365 days. Roughly one year in four has 366. Over a decade that is two or three extra days, which is enough to matter for interest calculations and contract terms.

Forgetting the leap year rule properly. Years divisible by 4 are leap years, except centuries not divisible by 400. 2000 was a leap year; 1900 was not, and 2100 will not be. Most software gets this right, but hand calculations frequently do not.

Mixing up “days between” and “days including”. The single most common cause of a one-day discrepancy in scheduling, billing and leave calculations.

Time zones and daylight saving

Neither affects the result here. Dates are treated as calendar dates in your local time with no time component attached, so a clock change inside the range cannot add or remove a day. Where this does matter is durations measured in hours across a DST boundary — a “24-hour” period can be 23 or 25 real hours. The hours figure shown assumes 24-hour days.

When this calculator is not the right tool

For working out someone’s age, the age calculator applies the birthday conventions correctly, including leap-day births. For adding a duration to a date rather than measuring between two, a date arithmetic tool is what you want. And for business-day deadlines that must exclude specific public holidays, you need a calendar for your jurisdiction rather than a general count.

Frequently asked questions

Why does the calendar breakdown not match days divided by 30?

Because months are not 30 days. The breakdown counts real calendar months — January to February is 31 days, February to March is 28 or 29 — and only converts the leftover into days. Dividing by 30 gives an approximation that drifts by several days over a year.

Should I include the end date or not?

For an ordinary duration, no: from Monday to Friday is four days. For anything counted in whole days of occupancy or entitlement — hotel nights, leave days, rental periods, notice served — you usually count both ends, which adds one. The toggle exists because both conventions are correct in different contexts.

How are working days counted?

Every Monday to Friday in the range, excluding Saturdays and Sundays. Public holidays are not deducted, because they vary by country and region. If you need an exact business-day count for a deadline, subtract the holidays that apply to you.

Does this handle leap years?

Yes. The day count works from actual calendar dates rather than an assumed year length, so 29 February is included whenever it falls inside the range. A period spanning a leap day is correctly one day longer than the same period in an ordinary year.

What if I enter the dates the wrong way round?

It still works. The calculator measures the distance between the two dates, so reversing them produces the same answer rather than a negative number.

Are time zones or daylight saving a problem?

No. Dates are handled as calendar dates in your local time with no time component, so a clock change in the middle of the range cannot shift the count. This is why the answer is always a whole number of days.

Last reviewed August 2026 · More everyday calculators