Counting days between two dates sounds trivial until you hit the details: months of
different lengths, leap years, and the question of whether the end date itself counts.
This calculator does the arithmetic on real calendar rules. The duration mode reports the
span as total days, as weeks with leftover days, as calendar months with days, and as the
years-plus-months-plus-days breakdown people use for ages, tenancies, and project
timelines. The include-end-date checkbox adds one day, which is what you want for
vacation day counts, notice periods, and trial deadlines that expire "on" a given date.
The second mode answers the forward-looking version: given a date, what date lands a
number of years, months, weeks, and days away? This is the math behind subscription
renewals, warranty periods, pregnancy due dates, and contract deadlines. Years and months
are applied first as calendar arithmetic, then weeks and days as simple day steps, and the
day is clamped to the end of the month when the target month is shorter, so January 31
plus one month lands on February 28 in a common year and February 29 in a leap year, the
convention most legal systems follow.
Weekday names are shown for the computed result, which is often the practical detail:
knowing a deadline falls on a weekend lets you plan around it before it bites. For
converting individual moments rather than spans, the
timestamp converter
handles Unix time, and the
age calculator
specializes the same date math for birthdays.