Skip to content
Tool4SaaS
ToolsGuidesAboutContact
Tool4SaaS

125 fast, local utilities for developers and creators. No sign-ups — most tools run in your browser.

hello@tool4saas.com

Languages:

English

Español

Français

Categories

  • Text & Documents

  • Business & Writing

  • Developer Tools

  • Converters

  • Generators

  • Images & Design

  • PDF Tools

  • Calculators

  • Finance & Money

  • Health & Fitness

  • SEO & Marketing

  • Time & Date

Popular tools

  • Invoice Generator

  • QR Code Generator

  • Word Counter

  • JSON Formatter

  • Mortgage Calculator

  • Resume Builder

  • View all tools →

Learn

  • All Guides & Tutorials

  • Word Counter Guide

  • Invoice Generator Guide

  • QR Code Generator Guide

  • Resume Builder Guide

  • About Us

  • Author

  • Methodology

  • Contact Us

© 2026 Tool4SaaS. All rights reserved.

  • Privacy Policy

  • ·
  • Terms of Service

  • ·
  • ·
  • ·
  • llms.txt

  1. Home
  2. /
  3. Blog
  4. /
  5. Age Guide
  6. /
  7. Date Difference Calculator: Days, Weeks & Months

Date Difference Calculator: Days, Weeks & Months

Count days between two dates correctly, including inclusive counts, leap days, weeks, months and working days, with checked examples.

By Tool4SaaS Editorial Team · Published October 23, 2026 · Updated October 23, 2026 · 8 min read

Try it now — Date, Countdown & Duration Calculator, free in your browser

Date math, countdowns, work days · No signup · No watermark · Free forever.

Open Date, Countdown & Duration Calculator →
On this page
  • Elapsed days vs dates touched
  • Three intervals checked
  • Leap days inside the interval
  • Weeks, months and working days
  • Adding and subtracting an offset
  • Using the date calculator

A date difference is a count of midnights, not a count of days on a calendar page. From January 1 to February 15, 2026, 45 midnights pass, yet the interval touches 46 printed dates. Hotels, payroll systems and contract clauses choose one convention or the other, and the gap between 45 and 46 is exactly the kind of detail that turns a correct calculation into a disputed invoice.

This guide is part of the age calculator guide. It covers elapsed versus inclusive counts, leap days, week and month breakdowns, working-day totals, and adding or subtracting an offset. Every example is checked against the calendar so you can reproduce it.

Elapsed days versus dates touched

Subtract the start date from the end date and you get elapsed days. January 1 to February 15, 2026 is 45 days: January contributes 31 days to February 1, and February 1 to February 15 contributes 14. The start date is day zero, and the end date is day 45. Most software, contract intervals and age calculations work this way.

Count every printed date in the range and you get 46: January 1 through January 31 is 31 dates, and February 1 through February 15 is 15 more. This is the inclusive count. A hotel stay from January 1 to February 15 charges for 45 nights but covers 46 days of occupancy language. A project plan that says “46 calendar days including both endpoints” is using the inclusive convention.

Neither number is wrong. The error is using one label for the other. A leave policy that grants 45 days but counts 46 dates will overspend by one day per request. A rental contract that charges 46 nights for a 45-night stay will overbill. Write the convention into the request before calculating: “45 elapsed days” or “46 dates inclusive”.

Time of day is a separate axis. Date-only arithmetic treats both endpoints as midnight labels, so the result is a whole number. If the inputs include clock times, the difference can include a fraction of a day. A task that starts at 09:00 and ends at 17:00 on the same date is zero elapsed dates but eight hours of work. Decide whether the question is about dates or durations before subtracting.

Three intervals, checked by hand

January 1 to February 15, 2026. January has 31 days, so the first month contributes 31. February 1 to February 15 contributes 14. The total is 45 elapsed days, or 46 dates inclusive. In weeks, 45 ÷ 7 = 6 weeks and 3 days. The interval starts on Thursday, January 1 and ends on Sunday, February 15.

March 1 to April 1, 2026. March has 31 days, so the total is 31 days, or 32 dates inclusive. That is 4 weeks and 3 days. March 1, 2026 is a Sunday and April 1 is a Wednesday. The month length, not a fixed 30-day assumption, determines the result.

October 22 to December 31, 2026. October 22 to November 1 contributes 10 days, November contributes 30, and December 1 to December 31 contributes 30. The total is 70 days, or 71 dates inclusive, which is exactly 10 weeks. The interval starts and ends on a Thursday, so the weekday pattern repeats every seven days.

IntervalElapsed daysDates inclusiveWeeksWeekdays
2026-01-01 to 2026-02-1545466w 3d32
2026-03-01 to 2026-04-0131324w 3d22
2026-10-22 to 2026-12-31707110w 0d50
2024-02-28 to 2024-03-01230w 2d2
2023-02-28 to 2023-03-01120w 1d1

The weekday column counts Monday through Friday before public holidays. The January–February interval contains 32 weekdays; the March interval contains 22 because March 2026 has five Sundays and four Saturdays. If a weekday public holiday falls inside the range, subtract one per holiday. The count is a calendar count, not a promise about which days a business is open.

Leap days inside the interval

The leap-year rule is divisible by 4, except century years, which must be divisible by 400. So 2024 is a leap year, 2026 is not, 2000 is, and 2100 is not. The extra day is February 29, and it appears in the count only when the interval crosses it.

The shortest illustration is February 28 to March 1. In 2024 the interval is 2 days because February 29 sits between the endpoints. In 2023 the same dates give 1 day. A date calculator that assumes February always has 28 days loses a day from every 2024 interval that includes the 29th.

At the year scale, 2024 contains 366 days and 2026 contains 365. A one-year contract from March 1, 2023 to March 1, 2024 covers 366 days because February 29, 2024 falls inside. The same contract from March 1, 2024 to March 1, 2025 covers 365 days. If interest, rent or service fees are calculated per day, the leap year changes the total by one day’s worth even though the calendar anniversary is unchanged.

Leap days also shift weekdays. Because 366 = 52 × 7 + 2, a date after February 29 in a leap year moves forward by two weekdays relative to the previous year, not one. That is why a fixed-date holiday can fall on a different weekday after a leap year even though the month and day are identical.

Weeks, months and working days

Weeks are the cleanest subdivision because every week is exactly seven days. Divide the elapsed total by 7 and keep the remainder: 45 days is 6 weeks and 3 days; 31 days is 4 weeks and 3 days; 70 days is exactly 10 weeks. A remainder of zero means the interval is a whole number of weeks, which is useful for sprint planning and recurring schedules.

Months are not clean. January 1 to February 15, 2026 is 1 month and 14 days in calendar terms, but February 15 to March 15 is 28 days in 2026 and 29 days in 2024. A month can be 28, 29, 30 or 31 days, so “one month” is not a fixed duration. A 30-day clause and a one-month clause can produce different dates when the target month is shorter than the starting day, most visibly in February and at year-end.

Working days need the weekday count and a holiday list. The January 1 to February 15, 2026 interval contains 32 Monday-to-Friday dates. Remove one for each weekday public holiday observed inside the range. Weekend work adds back only if the schedule explicitly includes it. Do not estimate working days as elapsed days × 5 ÷ 7: 45 × 5 ÷ 7 = 32.14, which happens to round near the correct 32 here, but the shortcut fails on short intervals and around holiday clusters.

If the interval crosses a daylight saving transition, date-only totals are unaffected. A calendar day is still a calendar day even when it contains 23 or 25 clock hours. Durations measured in hours are a different calculation; they need a time zone and an explicit start instant. The age difference guide covers calendar subtraction between two fixed dates, and the add-subtract guide covers offsets.

Adding and subtracting an offset

The same calendar rules run in reverse. Add 40 days to January 1, 2026: 30 days after January 1 is January 31, and 10 more days is February 10, 2026. Adding days never depends on month length assumptions because each step advances one printed date at a time.

Adding months does depend on month length. One month after January 31, 2026 is February 28, 2026, because February has 28 days and the result clamps to the last valid date. One month after January 31, 2024 is February 29. One month after March 31 is April 30. A billing system that rolls forward to March 1 instead is using a different convention, not making an arithmetic error.

Subtraction crosses year boundaries in the same way. Ten days before January 5, 2026 is December 26, 2025: five days reach December 31, and five more enter December. If you subtract a 240-hour duration instead of 10 calendar days, a daylight saving change inside the interval can move the wall-clock time by an hour. Choose the unit that matches the question.

For deadline work, decide whether the offset is measured in calendar days or business days. “Net 30” usually means 30 calendar days from the invoice date, which can include four or five weekends. “30 business days” is roughly six calendar weeks and needs a holiday calendar. The two phrases are not interchangeable, and a contract that uses one while the software uses the other will disagree at the boundary.

Using the date calculator without second-guessing

Enter the two dates in the difference view. Read the elapsed-day total first, then the week breakdown. If the question is inclusive, add one to the elapsed total and label it “dates inclusive”; do not change the underlying start and end dates.

  1. Enter 2026-01-01 and 2026-02-15. Confirm 45 elapsed days and 6 weeks 3 days.
  2. Enter 2024-02-28 and 2024-03-01. Confirm 2 days, then repeat with 2023 and confirm 1 day.
  3. Enter 2026-10-22 and 2026-12-31. Confirm 70 days, or exactly 10 weeks.
  4. For an offset, switch to add-subtract and enter 2026-01-01 with an offset of 40 days. Confirm 2026-02-10.

The add and subtract dates guide goes deeper on month-end clamping, negative offsets and recurring schedules. The pillar guide connects date differences to age, time zones and timestamps.

Count your interval: open the date calculator, enter both dates, and compare the elapsed total with the inclusive count before you put either number in a contract or invoice. No signup, and the calculation runs on your device.

Frequently asked questions

The difference view counts elapsed midnights, so the start date is day zero and the end date is the total. January 1 to February 15, 2026 is 45 days. The range touches 46 calendar dates if you count both endpoints. Add one for an inclusive count and label it clearly, because payroll and rental systems may expect either convention.

Split the range at month boundaries. Count the days remaining in the first month, add the full days of each month in between, then add the day number of the end date. January 1 to February 15 is 31 days to February 1 and 14 more to February 15, for 45 days. Add one more if the contract counts both endpoints.

No. Calendar months contain 28, 29, 30 or 31 days. One month after January 31 clamps to February 28 in a common year and February 29 in a leap year. A 30-day clause and a one-month clause can produce different dates when the target month is shorter than the starting day, most visibly in February and at year-end, so the contract should name the unit.

A leap day inside the interval adds one to the total. February 28 to March 1, 2024 is 2 days because February 29 is included; the same dates in 2023 are 1 day. A full leap year contains 366 days, so a one-year interval that includes it is one day longer than the same interval in a common year.

Count Monday through Friday dates in the range, then subtract one for each weekday public holiday observed inside it. January 1 to February 15, 2026 contains 32 weekdays before holidays. Do not use elapsed days × 5 ÷ 7 as a substitute; it fails on short ranges and around holiday clusters. Weekend shifts need an explicit rule.

Yes, but use the add-subtract view rather than the difference view. Adding 40 days to January 1, 2026 gives February 10. Adding one month to January 31 gives February 28 in 2026 or February 29 in 2024 because the result clamps to the target month’s last day. Days and months follow different rules and should be entered as separate steps.

Done reading — open the Date, Countdown & Duration Calculator

Date math, countdowns, work days — free in your browser, no signup.

Open Date, Countdown & Duration Calculator →

Keep reading in this guide

Pillar guide

Age Calculator Guide: Exact Age, Dates & Time Zones

In this silo

Age Difference Between Two Dates (With Examples)

In this silo

Time Zone Converter: Schedule Across Zones Without Errors

In this silo

Add or Subtract Days From a Date (Including Weekends)