Date explained: formula, worked example and common mistakes
The days between two dates in days, weeks and months with weekday counts, or the date you land on after adding or taking off time. Free, no sign-up.
Updated
Two questions, one page
Date arithmetic comes in two shapes, and they are mirror images:
- How far apart are these two dates? A gap, in days, weeks, months, or years-months-days.
- Where do I land if I add this much to a date? A new date, and the day of the week it falls on.
Both are easy to get wrong by hand, for the same reason: months are different lengths and weeks do not divide evenly into them.
The worked example
From 1 January 2026 to 25 December 2026.
Days between = 358
Counting both ends = 359
In weeks and days = 51 weeks and 1 day
In whole months = 11 months and 24 days
Weekdays (Mon to Fri) = 257
Weekend days = 102
The weekday figures count both end days, so they add up to 359 rather than 358. The page also shows how many of each weekday the span holds — in this case 52 Thursdays and 52 Fridays against 51 of everything else, which is the kind of detail that decides how many pay runs or weekly meetings fit in a period.
Adding and subtracting time
The second mode moves a date. Type a start date and any mix of years, months, weeks and days, and choose whether to add them or take them off.
Two rules are worth stating because they are where answers differ between tools:
Years and months move first, then weeks and days. “One month and ten days from 1 January” means move to 1 February, then add ten days: 11 February.
A short month clamps. 31 January plus one month is 28 February, not 3 March. The day of the month is held wherever possible and pulled back to the last day of the month where it cannot be. Going backwards works the same way.
2026-01-01 + 3 months + 10 days = 2026-04-11
2026-01-31 + 1 month = 2026-02-28
2026-04-11 - 3 months - 10 days = 2026-01-01
Weekdays, not working days
The page counts Monday to Friday. It does not know about public holidays, and this is deliberate: holiday calendars differ by country, by region, by industry and by year, and a stored table would be wrong for somebody from the day it shipped. Nothing of that kind is stored anywhere on this site.
So a 30-working-day notice period, a 90-day payment term or a court deadline needs one more step: take the weekday count from the page and subtract the holidays that apply where you are. The weekday tally makes that easy, because it tells you exactly which days the span contains.
When to use it, and when not to
Use it for deadlines, notice periods, project lengths, days until an event, how many weekends fall in a trip, and anything of the form “what date is X from Y”.
Do not use it where a contract specifies a counting convention of its own — some count from the day after, some exclude the end day, some count only working days under a named calendar. Read the clause, then use the page to do whichever arithmetic it describes.
Common mistakes people make
1. Being unclear about whether both ends count. The difference between two dates and the number of days in a period differ by one. The page prints both figures so the ambiguity is visible rather than hidden.
2. Assuming months are interchangeable with 30 days. Three months is 89, 90, 91 or 92 days depending on which three.
3. Adding days and months in the wrong order. One month and one day is not always the same date as one day and one month. Pick an order and keep it; the page uses years and months first.
4. Treating weekdays as working days. Holidays are not in the count, by design.
5. Forgetting the clamp on a month end. A monthly schedule starting on the 31st falls on the 28th, 29th or 30th in some months — and most systems do not then jump back to the 31st afterwards.
6. Mixing time zones into a date problem. Dates here are plain calendar days with no time attached, which is the only way the same two dates give the same answer everywhere.
Frequently asked questions
How many days are between two dates?
Subtract one from the other. From 1 January 2026 to 25 December 2026 is 358 days, which is also 51 weeks and 1 day, or 11 months and 24 days. Counting both the first day and the last gives 359.
How many weekdays are in that span?
257 in the worked example, with 102 falling at a weekend. The page counts both end days and gives a tally of every weekday, so you can see exactly how many Mondays or Fridays a span holds.
Are public holidays counted?
No, and they never will be. Holidays differ by country, region and year, and this site stores no such table. The count here is weekdays — Monday to Friday — which you can then adjust for whatever holidays apply to you.
How do I add 90 days to a date?
Switch to the second mode, type the start date and 90 in the days box. The page gives the date you land on and the day of the week it falls on, which is usually the reason for asking.
In what order are years, months, weeks and days added?
Years and months first, then weeks and days. The order matters: one month and one day from 31 January is 1 March, while one day and one month is 1 March too — but from 30 January they differ. The page states the order it uses.
What happens when a month is too short?
The date clamps to the last day of that month rather than rolling into the next one. 31 January plus one month is 28 February, not 3 March. That is how a calendar reads it and how most contracts are written.
Can the end date be before the start date?
Yes. The gap is the same size measured either way, so the page counts it and tells you the dates were the other way round rather than refusing to answer.
This tool shows math, not advice.
Cite this page
Copy this line into a reference list, a report or a spreadsheet note.
Investment Math Calculator. “Date Calculator”. Updated 2026-10-30. https://investmentmathcalculator.com/guides/date-calculator/
Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.