Date Calculator
Add or subtract years, months, weeks, and days from any date.
How the calculator works
The calculator applies the components in a defined order: years and months first, then weeks, then days. Month arithmetic follows calendar convention — adding one month to January 31 does not produce “February 31”; it clamps to February 28 (or 29 in a leap year), which is how legal and banking systems treat month-based terms. Weeks and days are then added as exact multiples of 7 and 1 calendar days, and subtraction simply reverses every component. The weekday is computed from the final date, so you can spot immediately whether a deadline lands on a weekend.
Formula
Month-end rule: min(day, days-in-target-month)
Where:
- Start — the initial date
- Years / months — calendar components, applied first with clamping
- Weeks / days — exact shifts of 7 and 1 calendar days
Example
A 90-day notice served on March 15, 2026: adding 0 years, 0 months, 0 weeks and 90 days lands on June 13, 2026 — a Saturday, worth knowing before you plan a filing. For a 3-month contract extension starting November 30, the clamp rule places the end on February 28 rather than an impossible February 30. Both behaviors mirror how courts and banks count.