Skip to content

Date Calculations — Days Between Dates, Age Calculation, and Week Numbers

How-To9 min readMay 1, 2025
Table of Contents

Date calculations seem simple until you actually try to do them precisely. How many days between June 15 and September 3? Is it 79 or 80 — does that include the start date, the end date, or both? How many working days is it? How many months is the same interval, given that months have different lengths? What ISO week number does September 3 fall in?

Each of these questions has an exact answer, but getting it right requires understanding the conventions: inclusive vs exclusive counting, calendar months vs exact days, working day definitions, and the ISO week standard. This guide covers all the common date calculation types, the pitfalls, and how to get accurate answers.

Days Between Two Dates: Inclusive vs Exclusive Counting

The most fundamental date interval question — "how many days from date A to date B?" — has two valid answers depending on counting convention.

Exclusive counting (default, mathematical): Count the days between the two dates, not including either endpoint. From June 1 to June 8 is 7 days — Monday to the following Monday is one week. This is the mathematical interval length.

Inclusive counting (used in legal and common speech): Count every day from the start to the end, including both. From June 1 to June 8 is 8 days. "An 8-day trip from June 1 to June 8" includes both the departure and return days.

Which to use:

  • Rental agreements, hotel stays, parking: typically inclusive of both check-in and check-out dates
  • Legal deadlines, notice periods: check the specific governing document — many legal systems specify "calendar days" without clarifying inclusive/exclusive, which has led to case law
  • Pregnancy duration: 40 weeks from last menstrual period is exclusive counting from that date
  • Age calculation: always exclusive — you do not count your birthday as day 1 of your life

When precision matters, verify which convention applies. When in doubt, report both numbers: "7 days between June 1 and June 8 (exclusive), 8 days inclusive."

Calculate days between datesToggle between inclusive and exclusive counting

Working Days vs Calendar Days

"Working days" or "business days" is a counting convention that excludes Saturdays and Sundays from the day count. It is used in contracts, shipping estimates, legal timelines, and project planning.

How to count working days: Remove all Saturdays and Sundays from the interval. A 10-calendar-day interval starting on Monday and ending on Wednesday (two weeks later) contains 8 working days — 10 days minus 2 weekends.

Public holidays: Standard "working day" calculations typically do not exclude public holidays — they are Saturdays-and-Sundays-only exclusions. If your contract or calculation explicitly excludes public holidays, you need to subtract those dates manually. Public holidays vary by country, region, and sometimes company.

Practical conversions (approximate):

  • 5 working days ≈ 1 calendar week (if starting Monday)
  • 10 working days ≈ 2 calendar weeks
  • 20 working days ≈ 1 calendar month
  • 250 working days ≈ 1 year (US standard, excluding major holidays)

Shipping and delivery estimates: When a courier says "3–5 business days," they typically mean working days excluding weekends, but not necessarily public holidays. If your shipment is expected over a holiday weekend, add the holiday days to the estimate.

Calculating Age: Common and Uncommon Use Cases

Age calculation is conceptually simple — count the years since birth — but has edge cases worth understanding.

Standard age calculation: The number of complete birthday anniversaries before the target date. If you were born on July 15, 1990, on July 14, 2025, you are 34 years old. On July 15, 2025, you are 35. The birthday is the threshold.

Age in months (for young children): Pediatric development is measured in months for children under 2–3 years. A child born on March 10, 2023 is 26 months old on May 10, 2025. Calculate as: (years × 12) + additional months.

Age on a specific date (eligibility calculations): School enrollment often has a cutoff date — a child must be 5 years old by September 1 to enroll in kindergarten. Calculate the child's age on September 1 to verify eligibility, not their age on the enrollment day.

February 29 birthdays: Leap year birthdays (February 29) present a calculation question for non-leap years. Most jurisdictions use March 1 as the legal birthday in non-leap years; some use February 28. Check the specific legal context if this distinction matters.

Retirement age calculation: "Must be 65 by June 30 of the plan year" requires knowing the exact date on which the person turns 65 — computed from their birthdate — then comparing that date to June 30. The date calculator's "add years to a date" mode gives the exact birthday date.

ISO Week Numbers: What They Are and Why They Confuse People

ISO 8601 week numbering is the international standard for week-of-year designation. It is common in European business planning, manufacturing, project management software, and software development.

The rules:

1. ISO weeks run Monday through Sunday

2. Week 1 is the week containing the first Thursday of the year

3. Equivalently: Week 1 is the week containing January 4

4. All dates belong to exactly one ISO year (which may be different from the calendar year)

The confusion at year boundaries: Because Week 1 is defined by the Thursday rule, the first few days of January may belong to the previous year's last week. January 1, 2, or 3 can fall in Week 52 or 53 of the previous year. Conversely, December 29, 30, or 31 can fall in Week 1 of the next year.

Example: January 1, 2023 was a Sunday. The Thursday of that week was December 29, 2022 — in 2022. Therefore, January 1, 2023 belongs to ISO Week 52 of 2022, not Week 1 of 2023. ISO Week 1 of 2023 started on January 2.

Years with 53 weeks: Most years have 52 ISO weeks. A year has 53 when January 1 falls on Thursday (the ISO Week 1 definition gives this year an extra week), or when it is a leap year and January 1 falls on Wednesday. Recent 53-week years: 2015, 2020, 2026.

US vs ISO week numbering: Many US calendar systems use Sunday-start weeks and define Week 1 as containing January 1. This produces different week numbers than ISO for dates near year boundaries. Always specify which convention you are using when sharing week numbers.

Look up ISO week numbersFull year week grid with start and end dates for each week

Adding and Subtracting from Dates: Edge Cases

Adding months to a date is more complex than adding days because months have different lengths.

The problem with adding months: "Add 1 month to January 31." February doesn't have 31 days. The result is either February 28 (or 29 in a leap year) or March 3 (by counting the remaining days), depending on the convention.

The end-of-month convention: The most common approach is to snap to the last day of the target month if the source day doesn't exist. January 31 + 1 month = February 28 (or 29). February 28 + 1 month = March 28 (not March 31, because February is not the last day of a month). This is how most programming languages and date libraries handle month arithmetic.

Lease end dates and contract durations:

  • "1-year lease starting March 1" ends February 28 of the next year (or February 29 in a leap year) — 365 or 366 calendar days
  • "6-month contract starting January 1" ends June 30 — if one month is added at a time: Jan 1 + 6 months = July 1 (use the last day of June instead if exclusive)

Adding working days: Adding N working days to a date requires skipping over weekends. Add days one at a time, skipping Saturday and Sunday. A calculator does this automatically; manually, use the formula: weeks_floor × 7 + (days_mod_5) days, adjusting for the starting day of the week.

Frequently Asked Questions

How do I calculate the number of days until a deadline?
Enter today's date as the start date and the deadline date as the end date in the days-between-dates calculator. The result is the exclusive count of days remaining — the number of days between today and the deadline, not including today. For a deadline of August 31 entered on August 25, the result is 6 days. To include today in the count, use inclusive mode, which shows 7. Most deadline calculations use exclusive counting.
How do I calculate how many weeks between two dates?
Divide the number of calendar days between the two dates by 7. For a clean answer, use the days-between-dates calculator, which shows the result in complete weeks and remaining days. For example, 45 days is 6 complete weeks and 3 days. For ISO week count (how many ISO week numbers are spanned), subtract the ISO week number of the start date from the ISO week number of the end date, adjusting for year changes.
What is the difference between calendar age and biological age?
Calendar age (chronological age) is the number of completed birthday anniversaries — it is what most people mean when they say their age. Biological age is a medical assessment of physiological function relative to population norms — it can be higher or lower than calendar age based on health markers. Date calculators compute calendar age only. Biological age requires medical assessment and is not computable from a birthdate alone.
How do I calculate a date 90 business days from today?
Divide 90 by 5 to get 18 complete weeks. Add 18 weeks (126 calendar days) to today's date as a starting approximation. Then adjust for any holidays in that period if they need to be excluded. For precise working-day calculation, use a date calculator with business-day mode enabled — it counts only Monday through Friday, giving you the exact calendar date that is exactly 90 working days from today.
How do ISO week numbers work at the end of December?
The last days of December can belong to ISO Week 1 of the next year. If December 29, 30, or 31 falls in a week whose Thursday is in January, those days are in Week 1 of the next year. For example, December 31, 2018 was a Monday; the Thursday of that week was January 3, 2019. Therefore December 31, 2018 was in ISO Week 1 of 2019, not Week 52 of 2018. This is counterintuitive but correct per the ISO standard.

Summary

Date calculations are precise by nature — the exact answer to "how many days between these dates" is deterministic, not approximate. The ambiguity comes from counting conventions (inclusive vs exclusive), from the variable length of months, from the definition of working days, and from week numbering standards that differ by country and industry.

Understanding the conventions — and verifying which one applies to your specific context — prevents the errors that cause missed deadlines, incorrect eligibility determinations, and scheduling mistakes. The calculator handles the arithmetic; this guide explains which convention to use for each type of calculation.

Try these tools

Related guides

All Guides