Menu

Date Add / Subtract

Date Add / Subtract: How It Works

Adding a period to a date is unambiguous in days and genuinely ambiguous in months, because months are not a fixed length. This page explains what happens at the awkward boundaries and how deadlines are usually counted in practice.

Days are simple; months are not

Adding days is straightforward — the calendar advances, leap days included automatically. Adding months has to answer a question with no single right answer: what is one month after 31 January?

Approach31 Jan + 1 monthUsed by
Clamp to month end28 or 29 FebruaryMost software and most legal drafting
Overflow3 MarchSome naive implementations

Clamping is the standard and the more sensible one: it keeps the result inside the intended month. It also means the operation is not reversible — 31 January plus one month is 28 February, and 28 February minus one month is 28 January, not 31.

If exactness matters, work in days. 'Within 30 days' is unambiguous; 'within one month' requires a convention.

Business days

Adding working days skips weekends and, where configured, public holidays. This is how most legal and commercial deadlines are expressed, and the details vary:

For a deadline with consequences, confirm the definition in the governing document rather than assuming.

End-of-month rules

Financial contracts commonly use an explicit end-of-month convention: if the start date is the last day of a month, every subsequent date is also the last day of its month. Under that rule, a monthly series starting 31 January runs 28/29 February, 31 March, 30 April. Without it, the series would be pinned to the 28th after February — which is why the convention exists.

Common uses

TaskTypical basis
Contract notice periodCalendar days or months, as drafted
Invoice due dateCalendar days from invoice date
Statutory response deadlineBusiness days, jurisdiction-specific
Warranty and guarantee expiryMonths or years from purchase
Prescription or renewal reminderDays
Project milestonesBusiness days

Leap years and February

Adding one year to 29 February gives 28 February in a common year under the clamping rule. Adding four years returns 29 February. This matters for anniversary-based calculations such as insurance renewals and age thresholds, where a policy or eligibility rule may specify which applies.

Time zones

Adding days to a date is unaffected by time zones, but the resulting instant is not. A deadline of '30 days from today, end of business' means different moments in different places. Contracts crossing borders should name the applicable time zone explicitly — otherwise the last day is genuinely disputable.

Frequently Asked Questions

What is one month after 31 January?
28 February, or 29 in a leap year, under the standard clamping convention used by most software and legal drafting. Some naive implementations overflow to 3 March instead. When exactness matters, count in days.
Are business days the same everywhere?
No. Weekends differ in some countries, public holidays are national and regional, and some jurisdictions define business days by court sitting days. Confirm the definition in the governing document for any deadline that matters.
Is the start date counted?
Usually not for business-day deadlines — counting typically begins the following day. Calendar-day periods vary by drafting. This one-day difference regularly decides whether a filing is on time.
What is an end-of-month convention?
A rule in financial contracts stating that if a series starts on the last day of a month, every subsequent date is also the last day of its month. Without it, a series starting 31 January would be pinned to the 28th after February.
What happens with 29 February anniversaries?
Adding one year gives 28 February in a common year under the clamping rule. Insurance and eligibility rules sometimes specify a different treatment, so check the policy wording where it matters.
Does adding months work in reverse?
Not always. 31 January plus one month is 28 February, but 28 February minus one month is 28 January rather than 31. Clamping loses information, so the operation is not reversible.

Related Date & Time Tools

Browse all Date & Time tools →