📆 Date Difference Calculator

Calculate the exact number of days, weeks, months, and years between any two dates. Also add or subtract days from any date for project planning.

Date Difference
Find duration between two dates

Add/Subtract Days

Find a date that is N days from a start
Result Date
Results
Total Days Between Dates
Total Weeks
Total Months
Total Years
Working Days (est.)
Weekends
Exact Duration
Day Breakdown
Duration in Units
📆

Select two dates to calculate the difference

🛂 Schengen / Visa Day Tracker
Track your 90/180-day Schengen Area compliance. Enter each trip's entry and exit dates — both days count as Schengen days.
Days Used (last 180 days)
Days Remaining
Window Start
Next Day Frees Up

The Schengen rule: max 90 days in any rolling 180-day window. This tool provides estimates — always verify with official sources for legal or visa purposes.

Guide

About the Date Difference Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

The Date Difference Calculator finds the exact span between two dates in days, weeks, months, and years — the core days between dates, or days between two dates, question — and can also add days to date or subtract them from a given date. Beyond basic date duration calculator math, it includes a work week selector for a working days calculator and business days calculator view, public holidays by country for 21 countries, and a dedicated Schengen day calculator covering the 90 180 day rule as a visa day tracker — making it useful for project managers, HR teams, travelers, and anyone working across international deadlines.

How It Works

Enter a start and end date and the calculator computes the exact number of calendar days between them, then derives weeks, months, and a precise years/months/days breakdown that correctly accounts for leap years and varying month lengths — the same logic that makes it a reliable pregnancy weeks calculator (enter your last menstrual period as the start date) or lease duration calculator for tenancy timelines. Choosing a Work Week (Mon–Fri, Sun–Thu, or Sun–Fri) turns the tool into a work week selector that changes which days count as "off" — including a dedicated sun thu work week option for the Middle East — which in turn changes the estimated working-days total; adding a Country applies that country's typical annual public-holiday count from our public holidays by country data, scaled proportionally to your date range. The Schengen 90 180 calculator works differently — you log entry and exit dates for each trip, and it counts how many of those days fall within the rolling 180-day window ending on your chosen check date, comparing that total against the 90-day limit as a true schengen day calculator.

Why It Matters

Getting a date calculation wrong has real consequences: missing a Schengen overstay under the 90 180 day rule by even one day can trigger entry bans, a legal notice period counted in the wrong day type can void a claim, and a project deadline that ignores holidays can blow a launch date. Seeing calendar days vs business days, working days, and holiday-adjusted estimates side by side makes it much easier to plan realistically instead of guessing.

Tips for Accurate Results

  • Match the Work Week setting to where the work actually happens — use Sun–Thu for UAE, Saudi Arabia, or Israel rather than defaulting to Mon–Fri.
  • Treat the country holiday estimate as a starting point, not a legal source — always verify exact public holiday dates for contracts, payroll, or compliance deadlines.
  • For Schengen tracking, remember both the entry day and exit day of each trip count as days spent in the zone, so log trips precisely rather than rounding.
  • Use the Add/Subtract Days tool whenever you need to add days to date for a deadline or renewal, rather than counting manually on a calendar — it's faster and avoids off-by-one errors.
Formula

How Date Difference Is Calculated

The exact logic behind Total Days, Working Days, Exact Duration, and the Schengen day count

Total Days (headline figure)
Total Days = End Date − Start Date, in whole calendar days

Total Weeks, Months, Years (quick estimates)
Total Weeks = Total Days ÷ 7 (rounded down)
Total Months = Total Days ÷ 30.44 (rounded down — 30.44 is the average number of days per month across a 4-year cycle)
Total Years = Total Days ÷ 365.25, shown to 2 decimal places (365.25 accounts for the extra day added every leap year)

Exact Duration (calendar-accurate Y/M/D)
Compares the year, month, and day components of both dates directly, "borrowing" from the previous month using its real length (28, 29, 30, or 31 days) whenever the end date's day-of-month is earlier than the start date's
🗓️

Working Days & Off Days

The calculator walks every calendar day from Start Date through End Date inclusive and classifies each by weekday using your selected Work Week (Mon–Fri, Sun–Thu, or Sun–Fri), counting how many fall on working days versus off days.

🌍

Public Holiday Estimate

Estimated holidays = (Total Days ÷ 365) × the selected country's typical annual public-holiday count — a statistical approximation, not a lookup of that country's actual holiday calendar.

🛂

Schengen 90/180 Window

The tracker marks every day covered by each trip's entry and exit dates (inclusive) and counts how many fall inside a rolling 180-calendar-day window ending on your chosen check date.

⚙️ Inclusive vs. Exclusive Counting

Total Days is calculated by straight subtraction, so it does not count the start date itself as a separate day — it measures the span between the two dates. Working Days, Off Days, and the Schengen day count instead count every day from the first date through the last date inclusive, since those figures represent "days present," not "distance between two points." This is a deliberate, common date-math convention split rather than an error, and it's why Working Days and holiday figures are labeled as estimates.

🎯 When Each Figure Is Most Useful

  • Total Days / Weeks — a quick span between two dates
  • Exact Duration (Y/M/D) — legal, contractual, or age-related precision
  • Working Days — project and payroll timelines
  • Schengen day count — visa/immigration compliance tracking

📋 Assumptions

  • All dates are treated as Gregorian calendar dates, not specific moments in time
  • Leap years are handled automatically by native date arithmetic — no manual leap-year rule is hard-coded
  • Total Months and Total Years use fixed average-length constants (30.44 and 365.25 days), not calendar-exact counts

⚠️ Limitations of the Method

  • Total Months/Years are estimates — use Exact Duration for calendar-precise results
  • Working Days and holiday counts are estimates, not verified calendars
  • No time-zone or time-of-day precision — the calculator works with dates only
Walkthrough

Step-by-Step: How to Use the Date Difference Calculator

Covers both the Date Difference mode and the Add/Subtract Days mode

Enter your Start Date and End Date

In the Date Difference card, pick the two dates you want to measure between. The End Date must fall on or after the Start Date.

Choose a Work Week and, optionally, a Country

Select Mon–Fri, Sun–Thu, or Sun–Fri to match where the work happens, and pick a Country if you want an estimated public-holiday count added to the results.

Click "Calculate Difference"

Instantly see Total Days, Weeks, Months, Years, Working Days, Off Days, Exact Duration, and two charts breaking down the span.

Switch to Add/Subtract Days for a target date

In the "Add/Subtract Days" card, enter a From Date and a number of days — positive to add (e.g. 30) or negative to subtract (e.g. −14) — then click "Calculate Result Date".

Read and export your result

The resulting date and day of the week appear immediately below. Use "⬇ Export Result" on the Date Difference card to download a plain-text summary of your calculation.

Example

Worked Example

Two scenarios: a standard date range, and a leap-year edge case

Scenario 1 — 1 January 2026 to 24 July 2026

Suppose you set Start Date to 2026-01-01 and End Date to 2026-07-24, with a Mon–Fri work week.

Start DateThu, 1 Jan 2026
End DateFri, 24 Jul 2026
Work WeekMon–Fri
Total Days: End − Start = 204 days (straight subtraction — the start date itself isn't counted as a separate day).
Total Weeks / Months / Years: 204 ÷ 7 ≈ 29 weeks; 204 ÷ 30.44 ≈ 6 months; 204 ÷ 365.25 ≈ 0.56 years (all estimates using average lengths).
Exact Duration: comparing calendar components directly gives 0 years, 6 months, 23 days — precise because it uses the real length of each month in between.
Working Days (Mon–Fri): walking every day from 1 Jan through 24 Jul inclusive (205 calendar days) and excluding Saturdays/Sundays gives 147 working days. The Off Days figure shown (Total Days − Working Days = 204 − 147 = 57) comes out one lower than the 58 actual weekend days in that inclusive range, because it's computed against the exclusive Total Days base — a good illustration of the inclusive/exclusive estimate noted above.
Total Days
204
Exact Duration
0y 6m 23d
Working Days (est.)
147

Scenario 2 — Leap-Year Edge Case: 1 Feb to 1 Mar

Compare the same "1 February to 1 March" range in a leap year (2024) versus a common year (2023).

2024 (leap year): 1 Feb 2024 → 1 Mar 2024 = 29 Total Days, because February 2024 has 29 days. Exact Duration: 0y 1m 0d.
2023 (common year): 1 Feb 2023 → 1 Mar 2023 = 28 Total Days, because February 2023 has only 28 days. Exact Duration: 0y 1m 0d.
Why this works automatically: the calculator has no special leap-year rule of its own — it relies on native date arithmetic, which already knows how many days each month has in a given year, so the 29-vs-28-day difference falls out of the subtraction correctly every time.
About

Date Calculation Tips & Use Cases

Real-world scenarios where accurate date math matters

📅

Calendar Days vs Working Days

Calendar days include weekends and holidays. Working days exclude weekends based on your selected work week: Mon–Fri (most countries), Sun–Thu (Middle East, Israel), or Sun–Fri (6-day week). Subtract public holidays for precise project timelines — use the Country selector above to get an estimate for your period.

🗓️

Project Planning & Deadlines

Add 90 calendar days for a quarterly timeline. For agile sprints, add 14 days per sprint. For contract milestones, subtract days from a deadline to set interim checkpoints. For cross-timezone deadlines, note that "end of day" differs between New York, London, and Singapore.

⚖️

Legal & Tenancy Timelines

Legal deadlines often specify "calendar days" or "business days" depending on jurisdiction. Lease agreements, notice periods, and rental bonds depend on exact day counts — especially when crossing month or year boundaries. Always confirm which day type applies before relying on a calculation.

✈️

Visa & Schengen Day Counting

The Schengen Area allows a maximum of 90 days in any rolling 180-day window — one of the most searched date calculator use cases globally. Use the Schengen Tracker above to count days across multiple trips and see exactly how many days remain. Also useful for counting days present in any country for visa compliance.

🤰

Pregnancy Duration

Pregnancy duration is measured in weeks from the last menstrual period (LMP). A full-term pregnancy is approximately 280 days (40 weeks) from LMP to due date. Enter your LMP as the start date and today as the end date to calculate how many weeks pregnant you are — the exact duration appears in the results.

🏠

Lease & Tenancy Duration

Calculate the exact length of a tenancy, lease, or notice period. Enter your lease start and end dates to find the total duration in months and days. Notice periods for rental agreements are often defined in calendar days — even a one-day difference can affect legal obligations.

👥

HR Tenure & Leave Calculations

Calculate an employee's tenure from hire date to today for service awards and anniversaries, work out accrued leave over a review period, or find a notice-period end date for resignations and terminations.

🎉

Event & Wedding Planning

Count down to a wedding, conference, or product launch, or work backward from an event date using Add/Subtract Days to set vendor bookings, invitation mailing, and RSVP deadlines.

🧾

Billing & Invoice Due Dates

Calculate Net-30, Net-60, or custom invoice due dates from an issue date, or check how many days overdue a payment is against its due date.

🧳

Travel Itinerary Planning

Plan multi-leg trips by calculating the exact number of days between flights, hotel check-in and check-out dates, or how long a visa or travel-insurance policy remains valid.

🎓

Academic Term Dates

Find the number of days or weeks in a semester or term, count down to an exam or application deadline, or calculate a student's total enrollment duration.

📜

Historical Research

Calculate the exact number of days between two historical dates for research, genealogy, or journalism, correctly accounting for leap years across centuries.

🔁

Subscription Renewal Tracking

Add a billing-cycle length (e.g. 30 or 365 days) to a subscription start date with Add/Subtract Days to find the next renewal date or a free-trial expiry date.

📄

Legal Contract Date Terms

Calculate notice periods, cure periods, or option-exercise windows defined in a contract, and compare calendar-day versus business-day interpretations before a deadline passes.

Pros & Cons

Advantages and Limitations

What this Date Difference Calculator does well, and where it can't replace an official source

✅ Advantages

  • Free to use, with no signup, account, or payment required
  • Runs entirely in your browser — dates you enter are never sent to or stored on a server
  • Combines three tools in one page: date difference, add/subtract days, and a Schengen 90/180 tracker
  • Offers three work-week conventions (Mon–Fri, Sun–Thu, Sun–Fri) instead of assuming one global standard
  • Includes public holiday estimates for 21 countries for a quick working-day sanity check
  • Shows both quick estimates (Total Weeks/Months/Years) and a calendar-exact Y/M/D breakdown in the same result
  • Automatically and correctly handles leap years and variable month lengths via native date arithmetic
  • Visualizes results with a day-breakdown chart and a duration-in-units chart
  • Add/Subtract Days mode instantly finds a target date without manual calendar counting
  • Schengen tracker supports unlimited trips and shows exactly how many days remain in the rolling window
  • Downloadable plain-text export of your Date Difference result
  • Fast-loading, mobile-friendly, and usable as many times as needed
  • Useful across many domains — HR, legal, travel, project management, and personal date tracking

⚠️ Limitations

  • Doesn't account for time zones or daylight saving time — dates are treated as calendar dates only, not specific moments
  • Assumes the Gregorian calendar only — doesn't support other calendar systems (e.g. Hijri, Hebrew, Chinese lunar)
  • Total Months and Total Years are average-length estimates (30.44 days/month, 365.25 days/year), not calendar-exact
  • Working Days and Off Days use inclusive-day counting while Total Days uses exclusive subtraction, so the two figures follow different conventions (labeled "est." for this reason)
  • Public holiday counts are statistical estimates, not a lookup of a country's actual holiday calendar for those specific dates
  • Doesn't account for company-specific or regional holidays beyond the national annual estimate
  • Schengen tracker is an estimate for planning purposes — always verify with official immigration sources before travel
  • No server-side history — calculations reset when you close or refresh the page
  • Not a substitute for legal, payroll, tax, or immigration advice
  • Doesn't flag whether a computed deadline falls on a public holiday (see Common Mistakes below)
  • Country holiday list covers 21 countries — countries outside that list have no holiday estimate available
Reference

Days in Each Month (Including Leap Years)

The Gregorian calendar data behind every date calculation on this page

MonthDays (Common Year)Days (Leap Year)
January3131
February2829
March3131
April3030
May3131
June3030
July3131
August3131
September3030
October3131
November3030
December3131

A year is a leap year if it's divisible by 4, except for century years, which must be divisible by 400 — so 2024 and 2028 are leap years, but 2100 will not be, even though it's divisible by 4. This 400-year rule keeps the Gregorian calendar aligned with the solar year to within about one day every 3,300 years.

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Assuming Total Days and Working Days always use the same start/end counting convention — Total Days is exclusive (subtraction), while Working Days counts both endpoints inclusive
  • Off-by-one errors from confusing inclusive counting (e.g. "3 business days from Friday") with the calculator's exclusive Total Days figure
  • Forgetting to switch the Work Week setting when calculating deadlines for the Middle East or a 6-day work week
  • Treating the country holiday estimate as a confirmed, dated public-holiday calendar rather than a proportional approximation
  • Rounding Total Months or Total Years and expecting them to match the calendar-exact Exact Duration figure
  • Forgetting that both the entry day and exit day of a Schengen trip count as full days in the zone
  • Not rechecking Schengen status after adding a new trip, since the 90/180 window shifts daily
  • Entering dates in the wrong order — the calculator blocks this with an alert rather than silently returning a negative result

💡 Expert Tips & Best Practices

  • Use Exact Duration, not Total Months/Years, whenever a legal, contractual, or age-related figure needs to be calendar-precise
  • Match the Work Week setting to where the work or travel actually happens, not your own local convention
  • Cross-check the country holiday estimate against an official source before finalizing payroll, legal, or compliance deadlines
  • Log every Schengen trip, even short ones — each one affects the rolling 180-day window
  • Use Add/Subtract Days for renewal or deadline dates instead of counting manually on a calendar, to avoid off-by-one mistakes
  • Export your Date Difference result before changing dates, so you keep a record of each calculation
  • Recheck your Schengen status shortly before travel, since the window recalculates relative to today
📝

Summary: This Date Difference Calculator gives you an instant day/week/month/year breakdown between any two dates, a calendar-exact duration figure, a work-week-aware working-days estimate with 21-country holiday context, an add/subtract-days tool, and a dedicated Schengen 90/180 tracker — all free, client-side, and exportable. Pair it with the Age Calculator or Business Days Calculator for related date-math tasks.

FAQ

Frequently Asked Questions

Common questions about date calculations

How are working days calculated?
Working days = Total days − off days. Choose your work week: Mon–Fri (most countries), Sun–Thu (Middle East, Israel), or Sun–Fri (6-day week). The calculator excludes the appropriate off days. For exact working days, also subtract public holidays — select a Country above to see an estimated holiday count for your period.
What is the difference between calendar days and business days?
Calendar days count every day including weekends. Business/working days count only weekdays. A 30-calendar-day period contains roughly 22 business days (Mon–Fri work week). Legal deadlines, payment terms, and project schedules often specify which type applies — always clarify before relying on the result.
How do I calculate 30 days from today?
Use the "Add/Subtract Days" section. Set the From Date to today, enter 30 in the Days field, and click Calculate. The result shows the exact date 30 days from now with the day of the week. Useful for invoice due dates, subscription renewals, and project deadlines.
Can I calculate duration across different years?
Yes — the calculator handles dates across years, decades, and centuries. It correctly accounts for leap years (February 29) using native calendar arithmetic. For multi-year durations, the result shows total days, weeks, months, and the full years + months + days breakdown (Exact Duration).
How does the Schengen 90/180-day rule work?
The Schengen Area allows non-EU visitors to stay a maximum of 90 days in any rolling 180-day window. The window is not fixed to a calendar period — it rolls daily. Both entry and exit days count as Schengen days. Use the Schengen Tracker on this page to enter your trips and see exactly how many days you have used and how many remain.
Does the work week setting affect the calculation?
Yes. Selecting "Sun–Thu" (used in UAE, Saudi Arabia, Qatar, and Israel) counts Friday and Saturday as off days instead of Saturday and Sunday. Selecting "Sun–Fri" counts 6 working days per week with only Saturday as the off day. This significantly affects working-day counts for cross-border business timelines — an Indian company calculating a deadline with a UAE counterpart should use the appropriate work week for each side.
Can I calculate pregnancy duration in weeks?
Yes. Enter your last menstrual period (LMP) as the start date and today as the end date. The results show the exact duration in weeks and days. A full-term pregnancy is approximately 280 days (40 weeks) from LMP to due date.
Does the calculator count the start and end date the same way for every result?
No. Total Days is calculated by straight subtraction (End Date minus Start Date), so it doesn't count the start date as a separate day. Working Days, Off Days, and the Schengen day count are instead calculated by walking every calendar day from the first date through the last date inclusive, counting both endpoints as full days. This is a deliberate difference between "duration" and "days present," and it's why Working Days and holiday figures are labeled as estimates.
What does "Exact Duration" mean compared to Total Months and Total Years?
Total Months and Total Years are quick estimates using average lengths (30.44 days per month, 365.25 days per year), useful for rough comparisons. Exact Duration instead compares the calendar year, month, and day components directly, so it reflects the real length of each month in between — use Exact Duration for legal, contractual, or age-related calculations where precision matters.
How accurate is the country holiday estimate?
It's a statistical approximation — the calculator multiplies the selected country's typical annual public-holiday count by the proportion of a year covered by your date range. It is not a lookup of that country's actual holiday calendar for those specific dates, so always verify exact public holiday dates from an official source for payroll, legal, or compliance purposes.
What happens if I enter an end date earlier than the start date?
The calculator shows an alert asking you to check your dates and will not calculate a negative duration. Make sure the earlier date is in the Start Date field and the later date is in the End Date field before calculating.
Can I track more than one Schengen trip at a time?
Yes. Click "+ Add another stay" to add as many entry/exit date rows as you need. The tracker combines every day you were present across all trips before checking how many fall inside the rolling 180-day window.
Does this calculator account for time zones or daylight saving time?
No. The calculator works with calendar dates only (year-month-day), not specific moments in time, so it doesn't factor in time zones or daylight saving changes. For hour-level precision across time zones, pair it with a dedicated time zone converter.
Is my date data saved or sent to a server?
No. This calculator runs entirely in your browser — the dates you enter are never transmitted to or stored on a server, and nothing is saved once you close or refresh the page.
Learn More

Authoritative Resources on Date and Calendar Calculation

Official references to complement this calculator — not a substitute for legal or immigration advice

Related Calculators

Explore other date and time tools