Use strict Gregorian dates from year 0001 to 9999. A combined offset adds years and months together, clamps the day once to the target month end, then applies weeks and days.
Recomputed from this page's implementation at build time · checked 2026-10-29
Adding one month to January 31 stops at February 28
Date arithmetic breaks wherever a calendar runs out of days. This page fixes what happens at month ends and leap days, explains why a subtraction can produce a negative day count, and hands the other half of the question — the gap between two dates — to a tool that exposes its own switch.
Ninety days apart, one square for every calendar day including both ends, seven to a row. That is twelve full weeks and six days over — the rest of October, all of November, all of December, and the first twenty days of January — which is why a deadline that sounds like a season is really a quarter.
How the result moves
Unit ↓ · Amount → · Calendar days from the start
7
30
90
365
days
7
30
90
365
months
212
913
2,739
11,109
years
2,557
10,958
32,872
133,313
One number, three units. Ninety means ninety days, or seven and a half years when read as months, or ninety years as years - a spread of three orders of magnitude from a single dropdown. The unit field, not the number field, is where deadline arithmetic actually fails.
90Days from 22 October 2026 to the resultninety calendar days, not ninety weekdays
2026-02-2831 January plus one monthclamped to the last day of February
2025-02-2829 February 2024 plus one yearthere is no 29 February in 2025
Month ends and leap days
Ninety days forward from a fixed date
Result date
2027-01-20
Weekday
Wednesday
Days between
90
Nothing is clamped here, so this card is the baseline: the day count and the calendar agree, and the weekday is a property of the result rather than of the input.
The last day of January, plus one month
Result date
2026-02-28
Weekday
Saturday
Days between
28
February has no 31st, so the result falls back to the last valid day. The competing convention is to overflow into March, which spreadsheet date functions commonly do; both are defensible, and they return different dates from identical input.
A leap day, plus one year
Result date
2025-02-28
Weekday
Friday
Days between
365
The target year has no 29th of February, so the result clamps to the 28th. Notice that the day count reflects the clamp: the same nominal jump of one year covers a slightly different number of days depending on which year you leave from.
Thirty days backwards
Result date
2026-09-22
Weekday
Tuesday
Days between
-30
The negative number is the answer, not a fault: it records that the result precedes the start date. Adding and subtracting the same amount produce counts of equal size and opposite sign.
An amount of zero
Result date
2026-10-22
Weekday
Thursday
Days between
0
Zero is a legal amount and returns the input unchanged. The day count is zero and the weekday is simply whatever that date already was — useful when you are checking that the field wiring is correct.
The same span, counted without the final day
Days
294
Weekdays
210
Weeks
42.00
Two dates describe a span, but how many days it contains depends on whether the last day counts. This page does not take two dates at all, so the convention question belongs to the companion tool, which exposes it as a switch.
The same span, counted with the final day
Days
295
Weekdays
211
Weeks
42.14
Exactly one more day, and one more weekday in this case. Neither count is wrong; a page that hides the switch is quietly choosing for you, and the choice shows up in payroll, deadlines and notice periods.
Dates and amounts that are rejected
You typed
startDate
2026-02-30
operation
add
amount
1
unit
days
today
2026-10-22
It answeredinputError
A date that does not exist
The text matches the date pattern but no 30th of February exists. Rolling it forward to March 2 would answer a question the user did not ask, so the whole calculation stops.
You typed
startDate
2026-10-22
operation
add
amount
100001
unit
days
today
2026-10-22
It answeredinputError
An amount beyond the accepted range
The limit is on the amount, not on the resulting year. Large values are still accepted well inside the cap, so the refusal marks a boundary of the input rather than of the calendar.
You typed
startDate
2026-10-22
operation
add
amount
-1
unit
days
today
2026-10-22
It answeredinputError
A negative amount
Going backwards is expressed by the operation selector, not by the sign of the amount. Accepting both would create two ways to say the same thing and therefore two chances to disagree.
The conventions behind the result
Months and years clamp, days never do
A month or year step can land on a day that does not exist in the target month, so the result is pulled back to the last valid day. A day step cannot hit that problem, which is why only the month and year paths need a rule.
The sign of the day count carries direction
Subtracting produces a negative count rather than an absolute one. That extra sign is information: it says which side of the start date the result sits on, and it lets two runs be compared without keeping the inputs in view.
The two date tools read direction differently
This page signs its day count; the difference calculator returns a magnitude regardless of which date comes first. That is a deliberate split — a gap between two events is usually reported as a size, while a step from a date has a direction by construction.
There is no two-date mode here
This tool takes one date and one step. The span between two dates, including the include-end-day switch and the weekday count, is handled entirely by the companion page linked below.
Two modes on one page, plus an include-end-day option, a business-day calculation and holiday settings.
Here
One mode: add or subtract an amount from a single date, with no business-day logic.
Why they built it that wayAdding and subtracting lives on its own page, apart from the difference-between-dates page, because the two are typed as different questions. The cost is that neither page can show you both answers at once.
If your task is counting working days, this page cannot do it and will not pretend to. The weekday is reported, but weekends are not skipped — the companion tool is the honest route for that question.
Set the start date to January 31 of any year, add one month, and confirm the result is the last day of February rather than a March date. Then subtract 30 days from today and check that the day count is negative.
Recounted by adding up month lengths by hand, and cross-checked the same pair of dates on the date-difference page · impl bcf16a9c
Method and assumptions
Use strict Gregorian dates from year 0001 to 9999. A combined offset adds years and months together, clamps the day once to the target month end, then applies weeks and days. Subtraction reverses the offset. Complete months follow that same clamp rule. The reference date changes only the result-distance note, not the result date. No holidays or time zones are applied.
These calculators provide planning estimates only. Building codes, wiring regulations and safety requirements differ by country and change over time, and nothing here replaces a licensed professional or a permit. For structural, electrical or gas work, follow local code and have the installation inspected.
Maintained by: CalcDeltaFormula and sources updated ·
Implementation source
This record describes the implementation used by this page. It is not independent validation. External references, when available, support only the stated formula or definition; estimates and custom rules retain their own assumptions.
The reference date changes only the result-distance note, not the result date. No holidays or time zones are applied.
Embed this calculator
Copy the iframe snippet to place this calculator on your site. No account required. The snippet stays in sync with the inputs currently shown.
Frequently asked questions
How does this calculator handle months and leap years?
Use strict Gregorian dates from year 0001 to 9999. A combined offset adds years and months together, clamps the day once to the target month end, then applies weeks and days. Subtraction reverses the offset. Complete months follow that same clamp rule. The reference date changes only the result-distance note, not the result date. No holidays or time zones are applied.