Skip to main content
Bethemesh
GuideConcepts and technologies

Date calculations: differences, deadlines, business days and calendar arithmetic

Learn how to calculate a difference between dates, add or subtract a duration, count days to a deadline, and distinguish calendar days from business days.

Published 28 August 2026Reading : 4 minBy Bethemesh Team
Beginner
Show contents
  1. Measure the difference between two dates
  2. Add or subtract days, weeks, months or years
  3. Why a month is not a fixed number of days
  4. What happens on the 31st?
  5. Leap years and February 29
  6. How many days remain before a date?
  7. Calendar days and business days
  8. What about public holidays?
  9. Calculating age: a special date difference
  10. Which tool should you choose?

Calculating with dates looks easy while all you need to do is look at a calendar. As soon as you need to answer a precise question such as “what date will it be in three months?”, “how many days remain before this deadline?” or “how many business days separate these dates?”, several calendar rules come into play.

Months do not all have the same length, February changes in leap years, a duration in months cannot be handled like a duration in days, and business days depend on what is excluded. The first step is therefore to identify which kind of calculation you need.

Bethemesh groups several specialized tools in the Dates & Time category. They use the same shared calculation engine so calendar rules remain consistent from one tool to another.

Measure the difference between two dates

The most direct question is to measure the gap between a start date and an end date.

The Date Difference Calculator gives you that interval without manually counting calendar squares. It is the right tool when both dates are already known and you want to measure the duration between them.

This is different from adding a duration. In one case, you know two dates and need the difference. In the other, you know one date and a duration and need the resulting date.

Keeping these operations separate prevents many mistakes in schedules, administrative deadlines and project planning.

Add or subtract days, weeks, months or years

To move a date through the calendar, use Add or Subtract Time from a Date.

Choose a start date, select whether the duration should be added or subtracted, enter its value and choose the unit.

Days and weeks can be shifted directly. Months and years require more care.

Why a month is not a fixed number of days

A month may contain 28, 29, 30 or 31 days. It would therefore be incorrect to systematically define 1 month = 30 days for calendar arithmetic.

For example, one month after January 15 naturally means February 15. The calculation preserves the calendar position rather than converting the month to an arbitrary number of days.

What happens on the 31st?

If one month is added to January 31, February has no 31st. The result must therefore be adjusted to the last valid day of the target month.

In 2026:

January 31, 2026 + 1 month = February 28, 2026

The same principle applies when subtracting months.

Leap years and February 29

A leap year has a February 29; an ordinary year ends February at the 28th.

Starting from February 29, 2024 and subtracting one year cannot produce February 29, 2023 because that date does not exist. The valid result is February 28, 2023.

This is why a calendar engine is preferable to an approximation based on 365 days per year.

You can test these edge cases directly with the date arithmetic tool.

How many days remain before a date?

When the question concerns a specific deadline, Days Until a Date is more direct.

It uses a reference date and a target date. The result shows the number of days between them. If the target is in the future, you get the remaining time; if it has passed, the tool shows how many days ago it occurred.

The result is also expressed in weeks and days, which can be easier to read for a distant deadline.

Calculate the number of days until a date.

Calendar days and business days

A calendar day is any day on the calendar, including Saturday and Sunday.

In the current Bethemesh calculation, a business day means a Monday through Friday. Saturdays and Sundays are excluded.

The Business Days Calculator shows the number of business days, calendar days and weekend days. Both boundary dates are included.

What about public holidays?

Public holidays are not currently deducted. Holiday calendars vary by country and sometimes by region.

The result is therefore a Monday-to-Friday calculation rather than a complete legal or administrative calendar. It is useful for estimating workload, attendance or delays excluding weekends, but contractual or regulatory calculations may require additional local rules.

Count business days between two dates.

Calculating age: a special date difference

Age is not simply a number of days divided by 365.

The Age Calculator compares a birth date with a reference date according to the calendar. Years, months and days are more meaningful here than a raw day count.

This matters around birthdays: two people born in the same year may not have the same age on a given date if one has already had their birthday and the other has not.

Calculate an age on a given date.

Which tool should you choose?

Use the Date Difference Calculator when both dates are known and you need their difference.

Use Add or Subtract Time from a Date when you know one date and a duration and need the resulting date.

Use Days Until a Date for a deadline or countdown, and the Business Days Calculator to exclude Saturdays and Sundays.

Use the Age Calculator for birth-date calculations.

For calculations involving clock times rather than calendar dates, continue with Durations and time: calculate, convert and handle midnight crossings.

Related tools

Dates & time

Date difference calculator

Calculate the exact difference between two dates in days, weeks, months, or years.

100% local
Use this tool
Dates & time
Beta

Days Until a Date Calculator

Calculate how many days remain until a date, or how many days have passed.

100% localNew
Use this tool
Dates & time
Beta

Business Days Calculator

Count business days between two dates, excluding Saturdays and Sundays.

100% localNew
Use this tool
Dates & time

Age calculator

Calculate an exact age from a date of birth and a reference date.

100% local
Use this tool

Was this article useful?