Days Between Two Dates: Why Free Online Tools Can Get It Wrong

Dates and time 8 min read

A shallow-focus photograph of a vintage brass calendar mechanism with two adjustable date pointers set several days apart, resting on a textured linen surface.
A shallow-focus photograph of a vintage brass calendar mechanism with two adjustable date pointers set several days apart, resting on a textured linen surface.

Counting the days between two dates is the kind of calculation most people assume is too simple to get wrong. Yet a landlord’s notice period, a software trial expiry, a statutory cooling-off window or an interest accrual can all shift by a day depending on whether the start and end dates are included in the total. That single day can mean the difference between a valid cancellation and a late fee.

Free online tools can handle the arithmetic instantly, but only if you understand what they are actually counting. Some count every calendar day; others count whole 24-hour intervals; finance uses conventions that treat months as 30-day blocks. This guide explains inclusive and exclusive counting, leap-year traps and the day-count conventions that spreadsheets, browser calculators and contracts use differently.

Inclusive vs Exclusive: The One-Day Gap#

Imagine you give 30 days’ notice on 1 June. If the notice period is counted exclusively, the clock starts on 2 June and the 30th day is 1 July. If it is counted inclusively, 1 June itself is day one and the 30th day is 30 June. Both totals are exactly 30, yet the last valid day differs by 24 hours. That is how a contract, a tenancy or a refund window can be honoured on one reading and missed on another. Always check whether the document says “within 30 days”, “30 days from” or “not less than 30 days before”, because each phrase points to a different convention.

Days Between Two Dates: Why Free Online Tools Can Get It Wrong — Inclusive vs Exclusive: The One-Day Gap
Counting methodLast valid dayDays counted
Exclusive: start not counted1 July30
Inclusive: start counted30 June30

Leap Years and the Century Exception#

A leap year adds 29 February, but the rule is more specific than “every four years”. The extra day is skipped in years divisible by 100, unless they are also divisible by 400. That means 1900 was not a leap year, while 2000 was. For date spans, the only thing that matters is whether the interval crosses 29 February. A one-year contract from 1 March 2023 to 29 February 2024 contains 366 days; the same contract from 1 March 2024 to 28 February 2025 contains 365 days, even though both are roughly a year. Most modern free online tools handle this correctly, but older spreadsheets and hand-coded calculators sometimes store 1900 as a leap year to remain compatible with Lotus 1-2-3, which can silently shift 1900-era dates by a day.

  • A year is a leap year if it is divisible by 4.
  • It is not a leap year if it is divisible by 100.
  • It becomes a leap year again if it is divisible by 400.
  • 1900 had 28 days in February; 2000 had 29.
  • A leap day only affects spans that actually cross 29 February.
  • Century years are the most common source of calculator disagreement.

Day-Count Conventions: 30/360 and Actual/365#

Finance does not count days the way a wall calendar does. In the actual/365 convention, every genuine calendar day in the period is counted, but the year is treated as 365 days even in a leap year. In the 30/360 convention, every month is treated as 30 days and every year as 360 days, so a two-month loan from 31 January to 31 March is counted as exactly 60 days, while actual/365 would count 60 days in a non-leap year and 61 days in a leap year. The result is that two contracts with the same nominal rate can produce different interest amounts. A €10,000 loan at 5% for 90 days costs about €12 more under actual/365 than under 30/360 in an ordinary year. You will usually see actual/365 in sterling and euro corporate loans, while 30/360 appears in US corporate bonds and many mortgage-backed securities.

Days Between Two Dates: Why Free Online Tools Can Get It Wrong — Day-Count Conventions: 30/360 and Actual/365
ConventionHow months and years are treatedWhere you meet it
Actual/actualReal calendar days; real year lengthGovernment bonds, some derivatives
Actual/365Real calendar days; year fixed at 365 daysSterling and euro corporate loans, some credit cards
30/360Each month = 30 days; each year = 360 daysUS corporate bonds, many mortgage-backed securities
Actual/360Real calendar days; year fixed at 360 daysSome short-term bank loans

None of these examples is financial, legal or tax advice.

Can You Trust Free Online Tools?#

Most browser-based date calculators are accurate for simple spans, but accuracy is not the only risk. Some sites send your dates to a server to generate a shareable link or to run analytics. For anything involving a contract, a patient, a court filing or a tax deadline, you should prefer a tool that runs entirely in the browser and never uploads your input. The same caution applies to spreadsheets stored in cloud accounts with sync enabled. The tools this directory lists include browser-only options, but a directory review is not a guarantee of privacy or accuracy.

  • Runs entirely in the browser: no network request carries your dates.
  • Open source or auditable: you can inspect the calculation logic.
  • No login or cloud save: sensitive deadlines stay off remote servers.
  • Clear inclusive/exclusive toggle: prevents the one-day shift.
  • Handles 1900 and century years correctly: avoids the Lotus 1-2-3 bug.
  • Shows its working: lists counted days or states the convention used.

When a Browser Calculator Is the Wrong Tool#

For one-off checks, a browser calculator is fast and private. For repeated business calculations, a spreadsheet gives you an audit trail and lets you adjust conventions. For legally binding deadlines, a solicitor or tax adviser is the safer route. The cost of professional advice varies widely: a solicitor reviewing a notice clause will typically charge €150–€400, depending on jurisdiction and complexity, while a chartered accountant verifying bond accruals may charge €200–€500. A native desktop date calculator or a Python/R script may suit developers who need batch processing. Cloud spreadsheets are convenient, but remember that co-workers or algorithms may see dates you would rather keep local.

Days Between Two Dates: Why Free Online Tools Can Get It Wrong — When a Browser Calculator Is the Wrong Tool
Tool choiceBest forWatch out for
Browser calculatorOne-off, private checksAmbiguous inclusive/exclusive settings
SpreadsheetRepeated, auditable calculations1900 leap-year bug; cloud sync
Native app or scriptOffline, sensitive or batch workUpdate lag; maintenance burden
Professional adviserBinding contracts or disputesCost €150–€500 depending on jurisdiction

Five Quick Checks Before You Rely on a Number#

Before you paste a day count into an email, a contract or a spreadsheet formula, run through these sanity checks. They take less than a minute, yet they catch the one-day slips that turn a valid notice into a missed deadline and the convention mismatches that make two interest figures diverge. Treat the first result from any calculator as a hypothesis, not a fact. If two calculators disagree, the cause is almost always a setting, not a bug.

  • State the convention: inclusive or exclusive, and which date is day zero.
  • Count the leap day: does the span cross 29 February in a leap year?
  • Match the domain: legal notices, finance accruals and project schedules use different rules.
  • Reconcile tools: run the same dates through two calculators and investigate any difference.
  • Document the source: save a screenshot or formula so you can explain the number later.

If two reputable tools disagree, the difference is usually a convention, not a bug.

Frequently asked questions

Should I include the start date when I count days between two dates?

It depends on the convention you are expected to use. In many legal contexts, a period is counted exclusively: the day the notice is served is day zero, and the period ends at midnight on the 30th day after. In project management and some contract schedules, counting is inclusive, so the start date is day one. The safest approach is to look for wording such as “within 30 days of” or “not less than 30 days before”, which usually signals exclusive counting. If you use a free online tool, choose one that lets you toggle inclusive or exclusive mode and shows the counted days. When the answer matters, write down which convention you used.

Why does 1900 matter if I am calculating dates in 2024?

For dates after 1 March 1900, the 1900 leap-year bug will not change your result, but it is a warning sign. Microsoft Excel and Google Sheets originally copied a Lotus 1-2-3 quirk that treated 1900 as a leap year, so any date serial number before 1 March 1900 is off by one day in those spreadsheets. The same code path is why the century rule matters: 2100 will not be a leap year, and a calculator that simply divides by four will get long-dated bonds and leases wrong. If your calculation crosses a century year, confirm whether the tool applies the divisible-by-400 exception.

Why does my loan interest not match the calendar days?

Lenders do not always use calendar days. The actual/365 convention counts every real day but divides by 365, while the 30/360 convention treats each month as 30 days and each year as 360 days. A 90-day loan in February, March and April will produce a different interest amount under each method. Your loan agreement should name the convention; if it does not, ask before you try to check the figure yourself. A browser calculator can verify the arithmetic once you know the convention, but it cannot tell you which convention applies. This is not financial advice.

days between two dates calculatorinclusive vs exclusive date counting30/360 day count conventionactual/365 interest calculationfree online date calculatorleap year rules explained

All guides

Reviewed 2026-08-09 by siteb.biz. About us

A directory, not a vendor

We list independent tools. We do not sell software.

Nothing leaves your browser

Every tool here runs on your device, including the QR and password ones.

No login, no adverts

No accounts, no advertising cookies, no third-party trackers.

12 languages

Tools, labels, results and guides, all translated.

Free both ways

Free to use and free to be listed in.