Date Calculator

Calculate days, weeks, months, or years between two dates, or add and subtract time from any calendar date. Choose inclusive or exclusive counting, count weekdays or business days, and handle leap years and month-end dates correctly.

Calculate Date Difference

All calculations are performed in your local timezone

Date Calculator Guide: Days Between Dates, Add or Subtract Time, and Count Business Days

A date calculator performs calendar arithmetic rather than ordinary decimal arithmetic. That distinction matters because calendar units are not uniform: months contain different numbers of days, leap years can contain 366 days, and adding one month is not the same as adding 30 days.

The most common date calculation is the number of days between two dates. For example, January 1 to January 2 can mean one elapsed day under exclusive counting, or two calendar dates when both endpoints are included. A useful calculator therefore needs an explicit inclusive-count option instead of silently choosing one interpretation.

Adding or subtracting calendar intervals creates a different problem. Adding 30 days to January 31 is not the same operation as adding one calendar month. Thirty days is a fixed duration. One month is a calendar-unit operation whose result depends on the starting month and the date-normalization rule used when the target month has fewer days.

Leap years create another source of error. Under the Gregorian calendar, most years divisible by four are leap years, except century years that are not divisible by 400. That means 2000 was a leap year, 1900 was not, and 2024 was.

Business-day calculations are also different from ordinary date differences. A seven-calendar-day interval usually contains five weekdays, but weekends, holidays, regional calendars, and organization-specific closures can change the number of actual working days.

The calculator should therefore separate calendar days, weekdays, and business days. Weekday mode removes Saturdays and Sundays. Business-day mode can additionally remove user-selected holidays or a maintained holiday calendar when one is available.

Months and years require careful interpretation as well. The interval from January 31 to February 28 is 28 elapsed days in a non-leap year, but many users may describe it conversationally as “one month.” A calendar-duration result should therefore distinguish exact elapsed days from a calendar decomposition such as years, months, and remaining days.

This page treats date arithmetic as a set of explicit operations rather than forcing all date questions through one formula. The user chooses whether the problem is elapsed time, calendar-unit addition, calendar-unit subtraction, or working-day counting.

How to Calculate Date Differences, Future Dates, Past Dates, and Working Days

  1. Choose the calculation type: Select date difference, add time, subtract time, or business-day calculation before entering the dates.
  2. Enter the start date: Use the calendar date from which elapsed time or calendar arithmetic should begin.
  3. Enter the end date for date differences: The calculator can return elapsed days and, where supported, calendar years, months, weeks, and remaining days.
  4. Choose inclusive or exclusive counting: Use exclusive counting for elapsed time. Enable inclusive counting when both calendar dates themselves should count.
  5. For addition or subtraction, choose the unit: Days, weeks, months, and years should remain distinct because calendar months and years do not contain a fixed number of days.
  6. Use business-day mode when weekends should not count: Weekday calculations normally exclude Saturday and Sunday. Add holidays separately when they should also be excluded.
  7. Review month-end normalization: When adding months to dates such as January 29, 30, or 31, verify how the calculator handles a target month that does not contain the same day number.
  8. Use elapsed days for precise duration: When exact elapsed time matters, use the total-day result rather than relying only on a calendar months-and-days description.

Formula and variables

Elapsed-day calculations measure the number of midnight boundaries between two dates. Inclusive counting adds one when both the start and end dates are counted. Calendar additions involving months or years should use calendar-aware date arithmetic rather than converting every interval into a fixed number of days.

Elapsed Days = End Date − Start Date; Inclusive Days = Elapsed Days + 1; Future Date = Start Date + Calendar Interval
SStart date
The first calendar date in a difference calculation or the base date for addition or subtraction.
EEnd date
The second calendar date in a difference calculation.
DElapsed days
The exact number of calendar days between start and end dates under exclusive endpoint counting.
IDInclusive days
Elapsed days plus one when both the starting and ending calendar dates are counted.
YYears
Whole calendar years included in a calendar-duration or date-addition operation.
MMonths
Whole calendar months included in a calendar-duration or date-addition operation.
WWeeks
Seven-day periods included in the selected calculation.
BDBusiness days
Counted working days after removing weekends and any selected excluded holidays.

Scenario 1: Days Between March 1 and March 15

A user wants to know the elapsed number of days between March 1 and March 15 and also wants to know how many calendar dates are included when both endpoints count.

Start date
March 1
End date
March 15
  1. March 2 is one elapsed day after March 1.
  2. March 15 is 14 elapsed days after March 1.
  3. Exclusive elapsed-day result = 14 days.
  4. Inclusive result = 14 + 1 = 15 calendar days.

Result: The dates are 14 elapsed days apart, or 15 days when both March 1 and March 15 are counted.

Neither result is universally more correct. They answer different questions. Elapsed duration excludes the starting instant, while inclusive counting treats both calendar dates as members of the range.

Understanding your results

Elapsed calendar days

This is the exact number of day boundaries between the two dates.

It is usually the appropriate figure when asking how much time has elapsed.

Inclusive days

This counts both the starting date and ending date.

It is useful for schedules, stays, events, or administrative periods defined as including both endpoints.

Calendar duration

This expresses the interval using whole years, months, and remaining days.

It can read more naturally than a total-day count but depends on calendar-unit rules.

Weeks and remaining days

This converts total elapsed days into complete seven-day periods plus the remainder.

It does not change the underlying elapsed duration.

Weekdays

This counts Monday through Friday while excluding Saturdays and Sundays.

It does not automatically remove public holidays unless holiday exclusion is enabled.

Business days

This counts working days under the selected weekend and holiday rules.

Actual business calendars can differ by country, employer, exchange, government agency, or industry.

Assumptions

  • Dates are interpreted under the Gregorian calendar.
  • A day means a calendar date rather than a 24-hour timestamp interval unless time-of-day inputs are explicitly supported.
  • Exclusive date difference measures elapsed days between the two dates.
  • Inclusive mode counts both endpoints.
  • Weeks contain seven calendar days.
  • Weekday mode treats Monday through Friday as weekdays unless another weekend configuration is selected.
  • Business-day mode excludes only the weekends and holidays explicitly configured.
  • Month and year additions use calendar-aware arithmetic rather than fixed day counts.
  • The calculator does not account for time zones or daylight-saving transitions unless time-of-day support is explicitly added.

Limitations

  • Calendar months do not have equal lengths.
  • A calendar year can contain 365 or 366 days.
  • Adding one month is not mathematically identical to adding 30 days.
  • Adding one year is not always identical to adding 365 days.
  • Month-end date addition requires a normalization rule when the destination month does not contain the starting day number.
  • Different software libraries can use different conventions when adding one month to January 31, so the calculator should document its chosen rule.
  • Business-day calculations are only as accurate as the holiday calendar provided.
  • Public holidays differ by country, state, province, municipality, and organization.
  • Observed holidays can differ from the statutory calendar date when a holiday falls on a weekend.
  • Financial markets and banks can use specialized business-day calendars that differ from ordinary Monday-through-Friday calculations.
  • A date-only calculator does not measure exact hours across daylight-saving time transitions.
  • Historical dates before widespread Gregorian-calendar adoption can require specialized historical calendar treatment.

Common mistakes

  • Counting both dates when the question asks for elapsed days.
  • Excluding the end date when a contract or schedule explicitly includes both endpoints.
  • Assuming one month always means 30 days.
  • Assuming one year always means 365 days.
  • Forgetting leap day when an interval crosses February 29.
  • Treating every year divisible by 4 as a leap year without applying the century rule.
  • Assuming January 31 plus one month must be March 2 or March 3.
  • Counting Saturdays and Sundays as business days.
  • Removing weekends but forgetting public holidays.
  • Assuming public holidays are identical everywhere.
  • Using calendar months when an exact contractual requirement is stated in days.
  • Using total days when a rule is explicitly stated in calendar months.

Practical use cases

Scenario 2: Add 90 days to a date

A deadline is defined as exactly 90 calendar days after a starting date.

Use day addition rather than adding three months because three calendar months can contain 89, 90, 91, or 92 days depending on the dates involved.

Scenario 3: Add three calendar months

A contract specifies a period of three months rather than 90 days.

Use month-aware calendar arithmetic so the result follows calendar months rather than a fixed 90-day duration.

Scenario 4: Count weekdays between dates

A project manager wants to estimate the number of Monday-through-Friday workdays available between two deadlines.

Weekday mode removes Saturdays and Sundays while retaining ordinary weekdays.

Scenario 5: Count business days excluding holidays

An administrative deadline is measured only in working days.

Business-day mode removes weekends plus any selected public or organizational holidays.

Scenario 6: Calculate an age-like calendar interval

A user wants the difference between two dates expressed as years, months, and days.

Calendar decomposition provides a human-readable duration while total elapsed days remains available as the exact interval.

Planning and decision guide

Date difference and inclusive counting answer different questions

The number of elapsed days between two dates normally excludes the starting point.

Counting calendar dates in a range can include both endpoints.

Scenario 7: Hotel stay versus event dates

Checking in June 1 and checking out June 4 usually represents three nights.

An event running June 1 through June 4 inclusive spans four named calendar dates.

The start and end labels should be visible beside every result

Users frequently forget which endpoint is being included.

Show the dates and counting method next to the answer instead of presenting only an unexplained number.

Calendar days are different from business days

Calendar-day calculations count every date.

Business-day calculations exclude defined nonworking days.

Scenario 8: Seven calendar days is not always five business days

A Monday-to-Monday interval contains weekend days.

If a holiday also falls during the period, the business-day count can be lower still.

Weekdays and business days should remain separate options

Weekday mode can simply exclude Saturday and Sunday.

Business-day mode should additionally support selected holidays or another defined nonworking calendar.

Business-day results require a holiday source

If the calculator later adds automatic U.S. federal holiday exclusion, the holiday calendar should be maintained by year.

Do not describe every Monday-through-Friday date as a business day when an applicable holiday should be excluded.

Observed holidays need separate handling

When a holiday falls on Saturday or Sunday, an employer or government office can observe it on another weekday.

A business-calendar engine should distinguish the statutory holiday date from the observed closure date when relevant.

Adding days and adding months are different operations

Days are fixed calendar units in date-only arithmetic.

Months vary in length, so month addition must preserve calendar semantics rather than convert every month to 30 days.

Scenario 9: January 15 plus one month

Calendar-month addition produces February 15.

Adding 30 days can produce February 14 in a non-leap year, demonstrating that the operations are different.

Month-end dates require an explicit rule

January 31 has no direct February 31 equivalent.

A common user-friendly rule is to clamp the result to the final valid day of the destination month.

Scenario 10: January 31 plus one month

Under a clamp-to-month-end convention, the result is February 28 in a common year and February 29 in a leap year.

The page should document this rule because other software can normalize differently.

Month-end preservation can be useful as an optional mode

Some recurring schedules intend “the final day of every month” rather than “the same numeric day whenever possible.”

A calculator could offer a preserve-month-end option for users modeling recurring calendar dates.

Scenario 11: Last day of January plus one month

If month-end preservation is enabled, the result is the last day of February.

Adding another month then produces the last day of March rather than automatically reverting to the 28th or 29th.

Leap years follow the Gregorian century rule

A year divisible by four is normally a leap year.

Years divisible by 100 are not leap years unless they are also divisible by 400.

Scenario 12: 1900 versus 2000

1900 is divisible by 100 but not 400, so it was not a leap year.

2000 is divisible by 400, so February 2000 contained 29 days.

Leap years affect addition as well as differences

An interval crossing February 29 can contain one more elapsed day than an apparently similar interval in an ordinary year.

The calculator should use actual calendar dates rather than an average year length.

Scenario 13: February 28 to March 1

In a common year, the elapsed interval is one day.

In a leap year, February 29 lies between the dates, making the corresponding interval two days when the end date remains March 1.

Adding one year to February 29 requires normalization

The following year usually does not contain February 29.

A common calendar rule maps the result to February 28, though the calculator should state the convention it uses.

Exact elapsed days should remain available even when calendar duration is shown

A duration such as “1 month” can represent different numbers of days depending on the months involved.

Show both the calendar decomposition and exact elapsed-day count when useful.

Scenario 14: February 1 to March 1

The calendar duration is one month.

The elapsed-day count is 28 days in a common year and 29 in a leap year.

Years-months-days decomposition depends on ordering

A common method first counts complete calendar years, then complete months, then remaining days.

This produces a human-readable calendar duration rather than a decimal approximation.

Avoid defining one month as 30.44 days for ordinary calendar output

An average month length can be useful in statistical calculations but does not preserve calendar boundaries.

A user asking for calendar months generally expects calendar-aware arithmetic.

Weeks are simpler because they contain seven days

Total elapsed days can always be divided by seven into full weeks and remaining days.

This is a duration conversion rather than a calendar-month operation.

Scenario 15: 45 elapsed days

45 ÷ 7 produces six full weeks with three days remaining.

The underlying total remains exactly 45 days.

Negative differences can be useful

If the end date occurs before the start date, the calculator can return either a negative elapsed duration or swap the dates and show absolute difference.

The selected behavior should be explicit.

Scenario 16: End date precedes start date

A signed calculation might return −10 days.

An absolute-difference mode can instead report “10 days apart.” Both are valid but answer different questions.

Adding negative time should behave like subtraction

Adding −15 days and subtracting 15 days should produce the same result.

The UI can still provide separate add and subtract modes for clarity.

Date-only and date-time calculations should not be mixed silently

A date-only calculator typically treats each input as a calendar date without a time zone.

Adding timestamps introduces hours, daylight-saving time, and time-zone offsets that require a different calculation model.

Scenario 17: DST transition

Two midnight timestamps in a region changing clocks can be 23 or 25 actual hours apart.

A date-only calculator should still describe consecutive calendar dates as one calendar day apart.

Time zones matter only when time-of-day is modeled

June 1 in Los Angeles and June 1 in Tokyo are the same named calendar date but represent different UTC intervals.

A date-only calculator does not need to resolve that distinction unless timestamps are introduced.

Deadline language should determine the counting method

“Within 30 days after” can differ from “for 30 days including the start date.”

The calculator can supply the arithmetic, but users should interpret legal, contractual, or administrative wording carefully.

Scenario 18: 30 days after versus 30-day inclusive period

Adding 30 days to a starting date produces one result.

Counting the starting date as day one can produce a date one calendar day earlier.

Legal deadline calculations can include specialized rules

Courts, agencies, contracts, and statutes can define whether weekends, holidays, service dates, or filing dates are included.

A generic date calculator should not represent itself as a substitute for jurisdiction-specific procedural rules.

Business-day mode is particularly useful for financial planning

Bank transfers, settlements, payroll, loan funding, and administrative processing can be described in business days rather than calendar days.

The actual institution can still use its own holiday and cut-off calendar.

Scenario 19: Five business days after Friday

With ordinary Saturday-Sunday weekends and no holidays, the fifth business day falls on the following Friday.

A Monday holiday would shift the result to the following Monday.

Date arithmetic can support savings and household planning without being a financial formula

Users can calculate the number of days until a savings deadline, bill date, renewal, move, or planned purchase.

The calculator remains a calendar utility rather than embedding financial assumptions.

The Savings Goal Calculator should handle the money side of a deadline

Use Date Calculator to determine the exact time available.

Then use the Savings Goal Calculator to calculate how much must be saved during that interval.

Scenario 20: Down payment needed on a specific future date

Date Calculator establishes the number of months or days remaining.

Savings Goal determines the contribution required to reach the financial target by that deadline.

The Household Expense Calculator can use dates for irregular bill planning

Annual insurance, registration, subscriptions, and similar expenses often have known renewal dates.

Use date arithmetic to determine time remaining, then convert the expected bill into a monthly sinking-fund requirement.

Recurring dates need stronger rules than one-time date addition

Monthly recurrence raises questions such as whether a payment due on the 31st moves to the last day of shorter months.

If recurring schedules are later added, they should use an explicitly documented recurrence convention.

Scenario 21: Monthly payment starting January 31

February does not contain day 31.

A recurrence engine must decide whether to use month-end preservation, clamp each month individually, or follow another documented schedule rule.

Date parsing should avoid ambiguous numeric formats

A date written 03/04/2026 can mean March 4 or April 3 depending on locale.

Use a date picker or explicit month labels rather than relying on ambiguous free-text formats.

ISO-style internal storage reduces ambiguity

Internally representing dates as YYYY-MM-DD keeps the year, month, and day order explicit.

The user interface can still display dates in the user’s preferred locale.

The calculation should remain date-based rather than timestamp-based internally when possible

Converting a pure date to midnight UTC can create off-by-one-day bugs when displayed in another time zone.

Calendar-date arithmetic is safer when implemented using date-only values or a calendar-aware library.

Scenario 22: UTC conversion changes displayed date

A date stored as midnight UTC can appear on the previous local date in a negative UTC offset.

The underlying calculation was intended to represent a calendar date, so timestamp conversion creates an unnecessary bug.

Validation should reject impossible dates

Inputs such as February 30 or April 31 are not valid Gregorian dates.

The UI should reject or normalize them transparently rather than silently performing unexpected arithmetic.

Scenario 23: February 29 in a non-leap year

The date does not exist.

The calculator should return a validation message rather than silently changing it to February 28 or March 1 unless the user is explicitly performing a normalization operation.

The strongest result explains the counting convention

Show “14 elapsed days” rather than only “14 days.”

If inclusive mode is enabled, show “15 days including both start and end dates.” Clear labels prevent many date-calculation disputes.

Frequently asked questions

How do I calculate days between two dates?

Subtract the earlier calendar date from the later date to obtain elapsed days. Enable inclusive counting if both the start and end dates should count.

What is the difference between inclusive and exclusive date counting?

Exclusive counting measures elapsed time between the dates. Inclusive counting includes both endpoint dates and is usually one day larger.

How many days are between January 1 and January 2?

There is one elapsed day between the dates. If both January 1 and January 2 are counted as calendar dates in the range, the inclusive count is two.

How do I add days to a date?

Add the required number of calendar days to the starting date. This is a fixed-duration operation and is different from adding calendar months.

How do I subtract days from a date?

Move backward from the starting date by the specified number of calendar days.

Is adding 30 days the same as adding one month?

No. Months have different lengths, so one calendar month can represent 28, 29, 30, or 31 days depending on the date.

How do I add months to a date?

Use calendar-aware month arithmetic that advances the month while preserving the day when possible and applies a documented normalization rule when the destination month is shorter.

What happens when I add one month to January 31?

A common convention is to use the last valid day of February—February 28 in a common year or February 29 in a leap year. The calculator should state its convention.

How do I add years to a date?

Advance the calendar year while keeping the month and day when valid. February 29 requires normalization in a non-leap destination year.

Is one year always 365 days?

No. Leap years contain 366 days.

What is a leap year?

Under the Gregorian calendar, a year divisible by four is generally a leap year, except century years unless they are also divisible by 400.

Was 2000 a leap year?

Yes. It is divisible by 400.

Was 1900 a leap year?

No. It is divisible by 100 but not by 400.

How many days are in February?

February has 28 days in a common year and 29 days in a leap year.

How do I calculate weeks between dates?

Calculate total elapsed days, divide by seven, and report complete weeks plus remaining days.

What is a calendar day?

A calendar day is any date on the calendar, including weekends and holidays.

What is a weekday?

In the common Monday-through-Friday definition, weekdays exclude Saturday and Sunday.

What is a business day?

A business day generally means a working weekday under a defined calendar, often excluding weekends and specified holidays.

Are weekdays and business days the same?

Not always. A weekday can still be a public holiday or organizational closure and therefore not a business day.

How do I calculate business days between dates?

Count eligible weekdays in the interval and remove any holidays or nonworking dates included in the selected business calendar.

Do holidays count as business days?

Usually not when the applicable organization is closed, but the holiday calendar depends on jurisdiction and institution.

Does this calculator include federal holidays?

Only if holiday exclusion is enabled and a maintained holiday calendar is selected. Basic weekday mode should not silently assume holidays.

What if a holiday falls on a weekend?

Observed closures can occur on another weekday. A business-day calculation should use the applicable observed-holiday rule where relevant.

Can I calculate a future date from today?

Yes. Enter the starting date and add the desired number of days, weeks, months, or years.

Can I calculate a past date?

Yes. Use subtraction mode to move backward by the selected calendar interval.

Can I calculate years, months, and days between two dates?

Yes. A calendar-duration mode can count complete years, then complete months, then remaining days.

Why do two one-month periods have different numbers of days?

Because calendar months range from 28 to 31 days.

Why is one year sometimes 366 days?

Leap years include February 29 to keep the calendar aligned with Earth’s orbital cycle.

Can the result be negative?

Yes in signed-difference mode when the end date precedes the start date. An absolute-difference mode can instead report only how far apart the dates are.

Does daylight saving time affect date calculations?

Not for pure calendar-date arithmetic. It matters when exact timestamps and hours are involved.

Does time zone affect days between dates?

Not when the inputs are treated strictly as calendar dates. Time zones matter when timestamps or times of day are included.

Can I use a date calculator for legal deadlines?

You can use it for arithmetic, but legal and procedural rules can define whether weekends, holidays, filing dates, or service dates count. Verify the applicable rule separately.

Can I use it for business deadlines?

Yes, but choose the correct calendar-day or business-day convention and add any relevant holidays or organizational closures.

Can I calculate how many days until a savings goal?

Yes. Use the date calculation to determine the time remaining, then use the Savings Goal Calculator to calculate the contribution needed for the financial target.

Can I calculate days until an annual bill is due?

Yes. This can help plan irregular household expenses that are later included in the Household Expense Calculator.

Why does January 31 plus one month cause problems?

February does not have a 31st day, so software must choose a normalization rule such as using the final valid day of February.

What date format should I use?

Use the date picker when possible. Explicit formats such as YYYY-MM-DD avoid ambiguity between month-day-year and day-month-year conventions.

How accurate is a date calculator?

Calendar-day arithmetic is exact when the dates and counting rules are defined correctly. Business-day and holiday results depend on the accuracy of the selected working calendar.

Sources and review

Reviewed 2026-08-31 by Dr Akawak Ejigu, DBA.

Continue with calculators that answer nearby questions and help compare the next step.