📅

Date Calculator

Calculate the number of days, weeks and months between two dates, or add and subtract days from a date. Free and instant.

✓ Free forever✓ No signup✓ 100% private — runs in your browser

Working out how many days separate two dates sounds trivial and is not, because month lengths vary and leap years break the pattern. Counting on a calendar is slow and error-prone past a few weeks.

How to use the Date Calculator

  1. Enter the start date
  2. Enter the end date
  3. Read the difference in days, weeks and months
  4. Check whether your use case needs inclusive or exclusive counting

Inclusive or exclusive counting

The question 'how many days from 1 March to 5 March' has two defensible answers, and which you want depends on context.

Exclusive counting gives 4 — the difference between the dates. This is standard for durations: how long something lasted, how many days until a deadline.

Inclusive counting gives 5 — both endpoints counted. This is standard for billing periods, hotel nights, rental days and most legal notice periods.

Getting this wrong by one day routinely causes invoicing disputes and missed legal deadlines. When a contract specifies a number of days, check which convention it means.

Business days and month-end

Calendar days and business days diverge quickly — 30 calendar days is roughly 21 working days, before public holidays, which vary by country and often by region.

Month arithmetic has its own ambiguity. What is one month after 31 January? Most systems clamp to 28 or 29 February, which makes the operation non-reversible: going back one month gives 28 January, not 31. Where exact dates matter — subscription renewals, interest periods — specifying a day count rather than a month count avoids the problem entirely.

Working days, holidays and notice periods

Contracts, courts and payroll rarely count calendar days, and the definitions differ enough to matter.

Business days normally mean Monday to Friday excluding public holidays — which are jurisdiction-specific, and in India also state-specific, so the same contract can resolve differently in Mumbai and Chennai. A "10 business day" turnaround spans two calendar weeks at minimum and longer across a holiday period.

Clear days, used in legal notice periods, exclude both the first and last day. "Seven clear days' notice" served on the 1st means the event cannot occur before the 9th.

Calendar months are not 30 days. One month from 31 January is the end of February in most conventions, not 2 March. A three-month notice period starting 30 November ends 28 February or 1 March depending on the rule applied.

Where a deadline carries consequences, the governing document defines the count and that definition overrides any general expectation. Where it is silent, the local civil procedure rules usually supply a default — and that default is often "clear days", which is one day longer than most people assume.

Date arithmetic that produces wrong answers

A few operations look reasonable and are not.

Adding 365 days to get next year. Correct three years in four. Across a leap day it lands a day early, which matters for annual renewals and anniversaries.

Dividing days by 30 to get months. Produces drift immediately, since no month has exactly 30 days except four of them. Twelve months of 30 days is 360, not 365.

Dividing days by 365.25 to get age. Approximately right and off by a day near birthdays, which is precisely when the answer is being checked.

Comparing dates as strings in any format but ISO. 15/11/2026 and 09/03/2026 compare by the first character, so November sorts before March.

Assuming a day is 24 hours. On daylight saving transition days it is 23 or 25, so adding 86,400 seconds to a local time does not reliably give the same clock time tomorrow.

The general fix is to let a date library do the arithmetic on calendar units rather than computing in seconds — and to store dates in ISO format so string comparison happens to be correct.

Frequently asked questions

Does this count leap years correctly?

Yes. The calculation uses real calendar dates, so leap days are included wherever they fall in the range.

Is the end date included in the count?

The difference is exclusive — 1 March to 5 March gives 4 days. For inclusive counting, as used in billing and notice periods, add one.

Can it count only working days?

Not currently — it counts calendar days. Business day counts need a holiday calendar, which varies by country and often by state or region.

How are months counted when lengths differ?

By counting whole calendar months first, then the remaining days. This is why a 'month' can be 28 to 31 days depending on which months the range crosses.