Docuboxer
By Sergio Alonzo Piña··7 min read

How to calculate business days between two dates

Calendar days, business days and legal deadlines are not the same thing. How to count them properly, how holidays fit in, and where manual math fails.

To calculate business days between two dates, count every calendar day in the span — both endpoints included — and drop the ones that fall on a Saturday or Sunday, plus any holidays that apply to your case. It sounds mechanical, and mostly it is, right up until a real deadline depends on getting it exactly right. Manual counts go wrong constantly, not because the math is hard but because the wording is ambiguous and holidays refuse to follow any single rule. You can calculate business days between two datesfor free with Docuboxer's date calculator — but it's worth understanding why the by-hand version trips people up first.

The ambiguity in "5 business days"

When a vendor says "ships in 5 business days," the question that almost never gets a clear answer is whether today counts as day one, or whether the clock starts tomorrow. Some organizations start the count the moment an order is placed; others start at midnight the following day. Court rules and statutory deadlines usually spell this out explicitly (Federal Rule of Civil Procedure 6, for instance, defines exactly how to count), but everyday business language rarely does. Two people reading the same promise can land on two different dates, both defensible.

The only reliable fix is to get the counting convention stated outright — "starting the next business day" or "including today." If it isn't written down and real money or a real deadline is riding on it, ask rather than assume.

The classic off-by-one: is it 4 days or 5?

This is the most common manual-counting error, and it shows up even when there's no wording ambiguity at all. Between Monday and Friday there are two defensible answers:

  • The difference (subtraction): Friday minus Monday is 4. That's what you get from a raw date subtraction, or from converting both dates to a Unix timestamp and subtracting the raw values.
  • The count of calendar days in the span: Monday, Tuesday, Wednesday, Thursday, Friday — 5, counting both ends.

Which one is correct depends on whether the deadline is inclusive. A deadline phrased as "Monday through Friday" is almost always inclusive in practice, so the real answer is 5 — but a quick subtraction gives 4 and quietly misses one day. It's the same fencepost problem programmers hit when iterating over a range; here the cost is a missed deadline instead of a bug.

Where this actually matters

This stops being a math curiosity in a few specific, high-stakes situations:

  • Legal and administrative deadlines: filing a response, submitting an appeal, meeting a statutory notice period. Miscounting by a single day can mean missing the window entirely.
  • Support SLAs: "response within 2 business days" means something different for a ticket filed Friday afternoon versus one filed Monday morning.
  • Delivery and shipping estimates: a vendor promising "5 business days" from order date only works if both sides count the same way.
  • PTO and leave accrual: figuring out whether a stretch of time off covers 10 calendar days or 10 business days changes the actual return-to-work date.

Holidays: the one thing no generic formula knows

Excluding weekends is mechanical. Excluding holidays isn't, because there's no single holiday calendar — it varies by country, and within a country by jurisdiction. U.S. federal holidays don't match every state's list; a holiday that falls on a Saturday is sometimes observed the preceding Friday and sometimes not observed at all; a UK bank holiday calendar is a different list from either. A calculator claiming to already know "the holidays" without asking where you are is just guessing.

That's why Docuboxer's business-days calculator doesn't bake in any holiday calendar. It counts business days by excluding weekends, then lets you paste in your own list of holiday dates — one per line — to exclude those too. That's an honest limitation, not an oversight: no tool outside your jurisdiction can reliably know which days are observed there.

The other tricky one: exact age

Calculating someone's exact age in years, months, and days has its own trap, separate from the business-days problem. Subtracting birth year from the current year isn't enough — you need to check whether this year's birthday has already passed. Someone born November 20th, with today's date in mid-August, still has three months to go before their next birthday, so the calculation has to borrow from the previous year the same way a subtraction borrows across a column — and borrowing correctly means checking how many days the actual previous month has, not assuming a flat 30.

February 29 is the edge case with no clean answer: in a non-leap year, that date simply doesn't exist, so different systems handle a leap-day birthday differently — clamping to February 28 or rolling forward to March 1. Neither is objectively "right"; it's a convention. Docuboxer's calculator clamps to February 28.

What the calculator does — and doesn't do

Worth being direct about this, since it's the only way the tool stays useful: the date calculator handles calendar-accurate differences (years, months, days), adding or subtracting days/weeks/months/years, business-day counts that exclude weekends plus any holidays you supply, and exact-age calculations with the next birthday. Everything runs in your browser — no date you enter is ever uploaded anywhere.

What it doesn't do: it has no built-in knowledge of any country's holidays, and for a deadline with legal weight, the authority is always the actual statute, regulation, or contract — never an online calculator. Use it to sanity-check your own count, not to replace reading the deadline itself. If you also need to move a list of deadline dates into a spreadsheet-friendly format, CSV to JSON conversion handles that without hand-editing rows, and if you're working with Unix timestamps instead of calendar dates, the timestamp converter resolves that other classic ambiguity — seconds versus milliseconds, and which time zone applies.

Frequently asked questions

Does "5 business days" include today?

It depends entirely on who wrote the deadline, and that's exactly the problem — there's no universal convention. Some contracts explicitly start counting the following day; others mean today is day one. If a real deadline hinges on it, don't assume — get it confirmed in writing rather than guessing which reading the other party intended.

Between Monday and Friday, is that 4 days or 5 days?

Both answers are correct for different questions. The difference (a subtraction) is 4. The count of calendar days in the span, both ends included, is 5 — Monday, Tuesday, Wednesday, Thursday, Friday. An inclusive deadline uses the second count; a plain date subtraction gives you the first. Mixing them up is the single most common manual-counting mistake.

Do federal holidays automatically get excluded?

Not by any generic formula. U.S. federal holidays, state holidays, and observed-vs-actual dates (when a holiday falls on a weekend and gets shifted to the nearest weekday) all differ by jurisdiction, and a UK bank holiday calendar is a completely different list again. No calculator can know which one applies to your deadline without you telling it.

How do you calculate someone's exact age in years, months, and days?

Subtracting birth year from the current year isn't enough — you have to check whether this year's birthday has already happened. If the reference date falls before the birth month and day, the year count drops by one and the remaining months and days borrow from the actual calendar, not a flat 30-day average.

What happens with someone born on February 29?

It's a genuine edge case with no single correct answer. Non-leap years don't have a February 29, so different systems resolve it differently — some clamp the birthday to February 28, others roll it to March 1. Docuboxer's calculator clamps to February 28, which is the more common convention, but it is a convention, not a law.

Does Docuboxer's calculator know my country's holidays automatically?

No, deliberately so — there's no single holiday list even within one country. The tool counts business days by excluding weekends, and lets you paste in whatever holiday dates apply to your specific case so it can exclude those too.

Calculate business days now

Date differences, business days, and exact age. Free and 100% local.

Open date calculator →

Related tools