About date arithmetic
Date arithmetic is not the same as subtracting two numbers. Months have 28 to 31 days, leap years add a day, and adding one month to 31 January has no exact answer. This calculator counts days from UTC midnight, so daylight saving never adds or removes a day, and it clamps month arithmetic to the last valid day instead of silently rolling into the next month.
The difference is measured as end minus start and does not include the end date, the usual convention for deadlines, rentals and project durations. If you need an inclusive count, add one to the result.
Which convention a business uses matters more than the arithmetic. Settlement terms written as T+2 count calendar days after the trade date; a rental that ends on the 10th is usually charged through the 9th; a notice period of 30 days may be counted from the day the letter is received or the day after, and some jurisdictions count only business days. The same pair of dates can therefore be nine or ten days apart depending on the rule, and neither answer is wrong. Decide the convention before you compute, write it into the contract or ticket, and apply it consistently, because a single day is enough to miss a filing deadline or a cancellation window.
Working-day counts need their own definition. Excluding Saturday and Sunday is the common baseline, but the working week is not universal: Friday and Saturday form the weekend in much of the Middle East, and some countries work a half day on Saturday. Public holidays then vary by country, by region and by year, and they move with lunar calendars, so no static rule covers them. A promise of five business days can mean seven calendar days, or considerably more across a holiday cluster such as New Year or the lunar new year. When a deadline is contractual, list the excluded dates explicitly rather than relying on a generic business-day count.
Order of operations changes the answer when days, months and years are applied together. Starting from 31 January, adding one month then one day gives 1 March after clamping, while adding one day then one month gives 2 March, because the intermediate date is 1 February. Adding a year to 29 February produces 28 February in the following year, and two different systems can disagree on whether that birthday is celebrated on the 28th or on 1 March. Age is a related case: subtracting birth years is not enough, because a person is one year younger until the birthday has passed, and the comparison must be made on month and day, not on the year alone.
How to use the date calculator
- For the difference, pick a start and an end date and read the total days, the weeks plus remainder days, and the weekday of each date.
- For date arithmetic, pick a base date, choose add or subtract, and enter days, months and years.
- Read the resulting date and its weekday; the calculation updates as you type or change the operation.
- Copy the result when you need it in a document or a message.
- Verify the count against a second method: read the weekday of both dates, or count the weeks on a calendar. If the total days and the weekday of the end date disagree, an inclusive and an exclusive convention have been mixed somewhere.
- Switch tools when the question is about business days, holidays or recurring schedules: a calendar, a payroll system or a spreadsheet function that knows the holiday table will handle statutory dates better than day arithmetic alone.
Frequently asked questions
Does the difference include both dates?
No. The result is end minus start, so a project that starts on the 1st and ends on the 10th lasts 9 days. Add one when you need an inclusive count.
Why does 31 January plus one month give 28 or 29 February?
Because February has no 31st. The tool clamps to the last day of the target month instead of rolling into March, which keeps the result inside the month you asked for. The same rule applies to leap years when adding years to 29 February.
Are time zones involved?
No. Dates are treated as calendar dates at UTC midnight, so the number of days is the same wherever you are and daylight saving cannot shift the result by an hour.
Can I subtract instead of add?
Yes. Choose subtract and the days, months and years are taken away from the base date; the same clamping rule applies to month ends.
Is a 30-day notice period the same as one month?
Not always. Thirty days is a fixed number of calendar days, while one calendar month ends on the same day number in the next month, which may be 28, 29, 30 or 31 days later. In February the two differ by two or three days, and a clause that mixes the two phrasings can be disputed. Use whichever the agreement names, and state the counting rule.
How do I calculate an age in years?
Subtract the birth year from the current year, then subtract one if the birthday has not yet occurred this year. Comparing only the years overstates the age by one for everyone born later in the year. Leap-day birthdays need a stated rule as well, usually 28 February or 1 March in non-leap years.
Why do 1 January and 31 January look one month apart but 30 days apart?
Because day counting and month arithmetic measure different things. The interval is 30 calendar days, while adding one month to 1 January lands on 1 February, a date 31 days later. Both statements are consistent; the confusion comes from treating a month as a fixed length, which it is not.