RuleDate Deadline Calculator
Business-day and deadline maths with public holidays and a step-by-step rule trace.
How it works
Chain date operations (add business days, add months with clamping, end of month, roll to next business day) on a start date. RuleDate uses public holidays for 16 countries and their subdivisions (2024–2030) and shows every skipped date with its reason, so the result can be checked rather than trusted.
- A business day is a day that is not a selected weekend day, not a public holiday of the chosen country (nationwide, or of the chosen subdivision) and not an extra closure date. Only Nager.Date entries of type "Public" count; bank, school, optional and observance days are ignored.
- Add business days counts business days after the start date (the start date itself is not counted); negative amounts count backwards. Every non-business day passed over is listed with all its reasons.
- Add calendar days / weeks ignore holidays. Add months keeps the day of month; if it does not exist, "clamp" uses the month’s last day and "overflow" rolls into the next month.
- End of month moves to the last calendar day of the month that is `amount` months after the current date. Next / previous business day roll only if the current date is not a business day (following / preceding convention).
- Optional final rule modelled on § 193 BGB: if the result falls on a Saturday, Sunday or a public holiday at the chosen place, it moves to the next day that is none of these (extra closures and custom weekends are ignored for this rule).
- Holiday data covers 2024–2030; dates outside that range are checked for weekends and closures only and trigger a warning.
Not legal advice. Statutory and contractual deadlines have their own rules (start-day exclusion, service dates, court holidays, local holidays); verify critical deadlines with a qualified professional.
Sources
- § 193 BGB – Sonn- und Feiertag; Sonnabend (Bundesministerium der Justiz / gesetze-im-internet.de)
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
Related tools
- TimeFair Meeting Planner – Find fair meeting times across time zones, with DST-exact local times and rotation.
How to use the RuleDate Deadline Calculator
Calculate business-day deadlines with public holidays for 16 countries, chain date operations and check every skipped day in a step-by-step trace.
What it is for
"Payment within 10 business days" or "one month after receipt" sound simple, but weekends, regional holidays and short months make them error-prone. RuleDate chains date operations (add business days, calendar days, weeks or months, end of month, roll to the next or previous business day) and applies the public holidays of 16 countries and their subdivisions for 2024–2030.
What sets it apart is the trace. Every step lists each date it skipped and why ("Saturday", "Christmas Day (GB public holiday)"), so you can check the result instead of trusting it. You can add company closure days, change the weekend and apply a final rule modelled on § 193 of the German Civil Code (BGB), which moves a deadline off a weekend or holiday.
It isn't a legal deadline calculator: court holidays, service dates and special statutory rules are out of scope, so use it only as a cross-check for court deadlines.
Worked example
10 business days from Friday 25 Sep 2026 in Bavaria (DE-BY) → Friday 9 Oct 2026. Four days were skipped: 26–27 Sep (weekend), 3 Oct (a Saturday and German Unity Day) and 4 Oct. The start date itself is never counted.
5 business days from 21 Dec 2026 in England, then end of month, then previous business day → Thursday 31 Dec 2026.
- Five business days land on 30 Dec. Skipped: Christmas Day (Fri 25 Dec), the weekend, and Mon 28 Dec, which is the substitute Boxing Day holiday because 26 Dec falls on a Saturday.
- End of month → 31 Dec.
- Previous business day → unchanged, since 31 Dec is a working day.
31 Aug 2026 + 1 month + 3 calendar days, with the § 193 BGB rule (Germany, no state) → Monday 5 Oct 2026.
- +1 month: 31 September doesn't exist, so the date is clamped to 30 Sep.
- +3 calendar days → Sat 3 Oct.
- § 193 rule: Saturday and German Unity Day, then Sunday, so the deadline moves to Monday 5 Oct.
A warning notes that regional holidays weren't applied (no state given).
How to read the result
- finalDate and finalWeekday are your answer.
- steps show each operation with from/to dates, every skipped date with all its reasons, and a short note (for example "clamped to the last day").
- holidaysApplied lists the public holidays that actually affected the calculation.
- outsideDataRange turns true, with a warning, if dates fall outside 2024–2030. Then only weekends and your closures are checked.
Tips and common mistakes
- Always set the subdivision where regional holidays exist, such as DE-BY, CH-ZH or US-CA. Epiphany or Corpus Christi can shift a deadline in one German state but not in another.
- Only official public holidays count. Bank holidays that are not public, school holidays, optional days and observances are ignored, so add company-specific days off under Extra closure dates.
- "Clamp" vs "overflow" matters for month-end dates. 31 Jan + 1 month gives 28 Feb (clamp) or early March (overflow). Most contracts and laws expect clamping.
- "Next business day" only moves a date that isn't already a business day.
- Use negative amounts to count backwards.
- The § 193 rule ignores custom weekends and extra closures, just like the law it's modelled on.
FAQ
Is the start date counted?
No. Counting starts the day after, so ten business days from a Friday end on the Friday two weeks later, if there are no holidays.
Which countries are supported?
Sixteen: Germany, Austria, Switzerland, the US, the UK, France, the Netherlands, Belgium, Spain, Italy, Poland, Sweden, Denmark, Ireland, Canada and Australia, with subdivisions where there are regional holidays. Choose "none" to count weekends and closures only.
What does the § 193 BGB option do?
If the final date falls on a Saturday, Sunday or a public holiday at the chosen place, it moves to the next day that is none of these. That mirrors how German law treats the end of many deadlines.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://ruledate.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://ruledate.usefulweb.site/mcp· tool nameruledate
Example request
curl -s -X POST https://ruledate.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"startDate":"2026-09-25","operations":[{"op":"add-business-days","amount":10}],"country":"DE","subdivision":"DE-BY"}'