Counting days: exclusive and inclusive
The difference between two dates is normally calculated as the end date minus the start date, which counts the days between them without counting the start day itself. From 1 January 2026 to 4 August 2026 that is 215 days, about 30.7 weeks, or 7 months and 3 days. The months figure counts complete calendar months first and then the days left over, so it is exact rather than an average-month estimate.
Some situations count both the first and the last day. A leave application from Monday to Friday covers five days, but the subtraction gives four. When both ends count, add one: the inclusive count for 1 January to 4 August 2026 is 216 days. Hotel stays work the other way: the subtraction gives the number of nights, which is what you pay for.
Why calendar arithmetic is harder than it looks
Months have 28, 29, 30 or 31 days, so the number of days in 'a month' depends on which month it is. February 2026 has 28 days and February 2028 has 29.
The Gregorian leap-year rule has three parts: a year divisible by 4 is a leap year, except years divisible by 100, which are not, unless they are also divisible by 400. So 2024 and 2028 are leap years, 2000 was one, and 2100 will not be. Because 2000 followed the exception to the exception, a lot of date code that only checks 'divisible by 4' has never been caught out, and will be in 2100.
Adding days versus adding months
Adding days is unambiguous. 31 January 2026 plus 30 days is 2 March 2026, because February 2026 has 28 days. 21 October 2026 plus 90 days is 19 January 2027.
Adding months is not. 'One month after 31 January' has no exact answer, since there is no 31 February; some systems return 28 February, others 3 March. That is why contracts, notice periods and return policies are usually written in days. If a document says 'within 30 days', count days with this calculator. If it says 'within one month', check how the organisation defines a month.
Practical uses and tips
Most real deadlines are a start date plus a fixed number of days. A few common cases and how to handle them:
- Notice periods: set the date notice is given as the start and add the number of days in your contract to find the last working day.
- Counting back: switch to Subtract Days to find a start date, for example the date 45 days before an event or a filing deadline. Any whole number of days can be typed in, including multi-year spans such as 1,000 days.
- Warranty and return windows: start from the purchase or delivery date, whichever the policy names.
- Visa stays: many rules count every calendar day you are present, including the arrival and departure days, so use the inclusive count.
- Results are shown as YYYY-MM-DD, the ISO 8601 format. It cannot be confused between US and European day-month order and it sorts correctly as text, which makes it a good choice for file names and spreadsheets.
- All calculations use plain calendar dates, so daylight-saving changes and your device's time zone never shift a result by a day.
Deadlines, time zones and the end of the day
A date on its own has no time attached, but deadlines do. 'Submit by 30 June' usually means by the end of 30 June in the organisation's own time zone, which may already be 1 July for you if you are in Asia and the organisation is in the United States. When it matters, check the stated time and zone in the official notice.
Working days are another source of error. A 10-day period that excludes weekends spans at least two calendar weeks, so do not use a calendar-day count where the rule says working days or business days.
Date Difference Calculator: frequently asked questions
Is the end date included in the day count?
No. The result is the end date minus the start date, so 1 January to 2 January counts as one day. Add one to the result if your situation counts both the first and the last day.
How many months is 215 days?
It depends on which months the period covers, because their lengths differ. From 1 January to 4 August 2026 (215 days) the calculator shows 7 months and 3 days. As a rough average, 215 days is about 7.1 months using the Gregorian average month of 30.44 days (365.2425 divided by 12).
What date is 90 days from today?
Set Starting Date to today, choose Add Days and type 90 in Number of Days. As an example, 90 days after 21 October 2026 is 19 January 2027. Choose Subtract Days instead to count backwards.
Why do contracts use 30 days instead of one month?
Because a month varies from 28 to 31 days and 'one month after 31 January' has no single answer. A day count gives both parties the same deadline regardless of which month it starts in.