Skip to content
cosmodev ~/tools/business-day-calculator

Business Day Calculator

Data & DevOps

Step N business days from a date or count the business days in a span — with your weekend definition (Sat-Sun, Fri-Sat, Sunday, none) and your holiday list. UTC dates, no DST traps; neighboring business days shown alongside.

What it does

Answers two questions over working days: what date is N business days from here? and how many business days fit in this span? The weekend is yours to define — Sat+Sun, Fri+Sat (Middle East), Sunday only, or none — and holidays are a plain list you paste, one YYYY-MM-DD per line. Dates are read as UTC calendar days, so no timezone or DST trap can shift a result. The tool also tells you whether the start date is itself a business day, plus its previous and next business days. Everything runs locally in your browser.

How to use it

  1. Pick a mode: Add days or Between dates.
  2. In Add days: set the start date and N (negative steps backward). In Between dates: set start and end.
  3. Choose the Weekend pattern and paste your holidays into the box.
  4. Read the result card — the target date (or count), the step explanation, and the neighbor badges.

Examples

Start 2026-11-13 (a Friday), +5 with Sat-Sun weekends: steps Fri→Mon 16, Tue 17, Wed 18, Thu 19, Fri 20 → 2026-11-20.

Same start, +3 with holidays 2026-11-16 and 2026-11-17: the week’s Mon/Tue vanish → 2026-11-18.

Between dates 2026-11-09 to 2026-11-14: the half-open span [Mon … Sat) counts Mon-Fri → 5.

Good to know

  • Spans are half-open — [start … end) — so a Monday-to-Friday query needs end = the Saturday (or Monday) to count all five days; same-day spans count 0.
  • Stepping from a weekend rolls onto the next business day in the direction of travel; +1 from a Saturday is Monday.
  • The count always spans chronologically — reversed dates are swapped, not negated.
  • Holidays you paste are excluded from both stepping and counting; they don’t need to be sorted.
Source code2 languages
cosmodev ~/src/business-day-calculator

100% client-side · your data never leaves your browser. Found this useful? Share it with a teammate.