Add / Subtract Date
SHIFT A CIVIL DATE BY WHOLE DAYS
Understanding a date shift
Adding or subtracting calendar days moves a starting date forward or backward by a specified number of date boundaries. A shift automatically crosses month endings, leap days and year boundaries according to the Gregorian calendar. This operation is useful when a deadline is expressed as a calendar-day offset.
Adding a signed number of days
T = date\left( ord(S) \pm n \right)
ord(T) - ord(S) = \pm n
S = Starting date; n = nonnegative integer Number of days; ord converts a civil date to a day count and date converts it back; use + for Add and − for Subtract.
The resulting date T is exactly n calendar days after or before S, using the selected operation.
Set a starting date and choose a direction
The page presents Starting date, Number of days (nonnegative integer, default 30), and a segmented Add / Subtract choice. After pressing Calculate, it displays the resulting full calendar date and a detail such as “28 Mar 2026 + 5 days”. The algorithm uses civil-date arithmetic so local daylight-saving clock shifts do not alter the calendar result. Inputs are limited to 109,573 days and output dates to years 1900–2200.
Try this in BB Calculator. Choose 28 March 2026, enter 5, select Add, and calculate: 2 April 2026. Select Subtract with the same start and count to obtain 23 March 2026. A zero-day entry returns the starting date. Use Working Days when a plan specifically requires exclusions for weekends or holidays.
Month and year boundaries require no manual adjustment
March has 31 days; adding five days to March 28 therefore reaches April 2. Users should record the starting date, sign and number of days rather than describing an ambiguous “next week”.
March has 31 days; adding five days to March 28 therefore reaches April 2. Users should record the starting date, sign and number of days rather than describing an ambiguous “next week”.
A leap year changes one February boundary
A leap year changes one February boundary
In leap year 2024, the day after February 28 is February 29, followed by March 1. In common year 2025, February 28 is followed directly by March 1. The Gregorian leap-year rule includes a century-year exception.
Calendar offsets versus business-day deadlines
Calendar dates move by civil-day boundaries. If a contract or workplace process specifies working days, its weekend and holiday convention needs a separate calculation and potentially jurisdiction-specific checking.
Calendar dates move by civil-day boundaries. If a contract or workplace process specifies working days, its weekend and holiday convention needs a separate calculation and potentially jurisdiction-specific checking.
Quick answers
Does Add account for February 29?
Yes. It follows the calendar, including leap days.
Can I enter half a day?
Number of days accepts a nonnegative whole number.
Why is an extreme shift rejected?
The app limits the shift to 109,573 days and results to years 1900–2200.
