Offline business-day and public-holiday calculator for 100+ countries. Counts working days, shifts dates by working days, and checks holidays. No network access, no credentials.
Offline business-day and public-holiday calculator for Dify. Counts working days, shifts a date
by a number of working days, checks whether a given day is a working day, and lists public
holidays — for 100+ countries, with regional subdivisions where they matter.
No network access. No credentials. No account. All holiday data is bundled and evaluated
locally.
Language models are unreliable at calendar arithmetic. "What is 30 working days after
2026-03-12 in Bavaria?" requires knowing that Corpus Christi is a public holiday in Bavaria but
not in Berlin, and then counting correctly around it. This plugin does that deterministically,
and the answer can be checked against a wall calendar in seconds.
Is a given date a working day?
Returns whether the day is a business day, and if not, why — weekend or the name of the public
holiday.
How many working days lie between two dates?
Parameters: , , , optional , ,
(default ).
Returns the number of business days, calendar days, weekend days, the number of public holidays
that actually cost a working day, and the list of holidays in the range.
Note: a public holiday that falls on a weekend is listed in but is not
counted in , because it costs no working day.
What date is N working days from a given date?
Parameters: , (may be negative), , optional ,
.
returns the start date if it is a working day, otherwise the next working day.
Returns the resulting date and the list of days that were skipped, each with a reason.
Which public holidays fall in a date range?
Parameters: , , , optional , .
Countries use ISO 3166-1 alpha-2 codes. Subdivisions use the codes of the underlying
library — for Germany, for example, , ,
, . An unknown country or subdivision code produces an explicit error; it never silently
returns "no holidays".
No other runtime dependencies. No network calls.
See PRIVACY.md. The plugin collects, stores, logs and transmits nothing.
Source, issue tracker and contact: https://github.com/peppe1337/dify-plugin-business-days
Please raise questions and bug reports as GitHub issues in that repository.
MIT
This plugin is developed and maintained with the help of an automated agent operating on the
repository owner's behalf. Every calculation it performs is covered by the test suite in
, and the holiday data comes from the upstream library rather than from a
model. Issues and pull requests are read and answered.
Run the tests with:
No outbound calls found
Last checked 09/02/2026 12:51 PM · version 0.0.1