Skip to main content

Add or Subtract Days to a Date

Find the exact date 30, 60, 90, or 180 days from today โ€” or shift any date forward or backward by calendar years, months, weeks, days, or business days.

Common planning windows (30 / 45 / 60 / 90 / 180 days)

Use the quick preset chips above to jump straight to standard planning intervals, or refer to how each day count maps to weeks and common deadlines:

WindowExact weeks + daysCommon real-world uses
30 days4 weeks, 2 daysInvoice net-30 terms, monthly billing, standard return windows, short notice periods
45 days6 weeks, 3 daysCredit card dispute windows, mortgage rate locks, mid-tier contract notices
60 days8 weeks, 4 daysLease termination notice, senior role notice periods, visa renewal windows
90 days12 weeks, 6 daysProbation periods, quarterly OKRs, Schengen/tourist stay limits, passport validity checks
180 days25 weeks, 5 days6-month passport validity rules, Schengen rolling lookback window, half-year warranties

Month-end clamping rules (worked examples)

Adding months to the 29th, 30th, or 31st of a month requires a clear rule when the target month is shorter. Rather than overflowing into the next month (the bug caused by naive Date.setMonth() in JavaScript), Lasita clamps to the final day of the target month and flags it visibly:

  • 2025-01-31 + 1 month โ†’ 2025-02-28 (adjusted to last day of month)
  • 2024-01-31 + 1 month โ†’ 2024-02-29 (leap year, adjusted to last day of month)
  • 2024-02-29 + 1 year โ†’ 2025-02-28 (adjusted to last day of month)
  • 2026-03-31 + 1 month โ†’ 2026-04-30 (adjusted to last day of month)

Frequently Asked Questions

What happens when you add 1 month to January 31?

Because February does not have 31 days, the result is clamped to the last valid day of February: 2025-01-31 + 1 month = 2025-02-28 (non-leap year), and 2024-01-31 + 1 month = 2024-02-29 (leap year). Whenever clamping occurs, the calculator explicitly displays "(adjusted to last day of month)".

Can I add or subtract business days instead of calendar days?

Yes. Switch the unit toggle from "Calendar" to "Business". The engine uses O(1) weekday arithmetic plus your custom weekend schedule and holidays from the Working Days tab. Adding or subtracting 1 or more business days always lands on a working day; an offset of 0 keeps the start date unchanged.

What is the maximum number of days I can add or subtract?

Offsets are safely capped at ยฑ3,652,425 days (ยฑ10,000 years) and results must remain within the supported calendar range 0001-01-01 to 9999-12-31. Because all math is O(1), even massive offsets calculate instantly without freezing your browser.

In what order are combined Years, Months, Weeks, and Days applied?

Years and months are applied first (with end-of-month clamping if needed), followed by weeks (ร—7) and days in integer day-number space. This matches ISO/calendar expectations and prevents unexpected overflow jumps.

Does adding 90 days equal adding 3 months?

Not always. Depending on which months you cross, 3 calendar months can be 89, 90, 91, or 92 days. For contracts and visas that specify "90 days" (like Schengen), always use the Days field or the +90d chip rather than 3 Months.

Why does the quick preset include both +30d and โˆ’30d?

Forward presets (+7d, +30d, +60d, +90d, +180d) help compute upcoming deadlines from today, while โˆ’30d lets you look back quickly for 30-day return eligibility, billing cycles, or rolling activity windows.