Business Days

v2.0.1
com.profitpather.tools/business-days Checked 3 days ago Published 1 month ago

Public holidays and working-day maths for 200+ countries, cross-checked across three providers.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_public_holidays List public holidays

Use this when the user asks what the public holidays are in a country or region for a given year, when a particular holiday falls, or how many holidays a year has. Covers 200+ countries with state and province detail. Do not use it for working-day arithmetic; use add_business_days for that.

ParameterTypeDescription
country *stringISO 3166-1 alpha-2 country code, for example AU, US, GB, NZ, DE.
year *integerCalendar year between 1975 and 2075.
regionstringOptional ISO 3166-2 subdivision code such as AU-NSW or US-CA. Supply it whenever the user names a state or province, otherwise only nationwide holidays are returned.

check_business_day Check whether a date is a business day

Use this when the user asks whether one specific date is a working day, a public holiday, or whether businesses and banks are open. Names the holiday if there is one, and reports whether independent holiday sources agree on that date.

ParameterTypeDescription
country *stringISO 3166-1 alpha-2 country code, for example AU, US, GB.
date *stringThe date to check, in YYYY-MM-DD format.
regionstringOptional ISO 3166-2 subdivision code such as AU-NSW or US-CA.

add_business_days Add or subtract business days from a date

Use this when the user needs a date N working days from another date: delivery and shipping estimates, payment or settlement terms, notice periods, SLA and deadline questions. Skips weekends and the public holidays of the country or region, reports exactly which days were skipped, and flags any date in the range that independent sources disagree about.

ParameterTypeDescription
country *stringISO 3166-1 alpha-2 country code, for example AU, US, GB.
days *integerBusiness days to move. Positive counts forward, negative counts backward. Maximum magnitude 1000.
start_date *stringThe starting date in YYYY-MM-DD format. It is not counted itself.
regionstringOptional ISO 3166-2 subdivision code such as AU-NSW or US-CA.

cross_check_holidays Cross-check holidays across independent sources

Use this when accuracy matters more than speed, or when the user questions whether a holiday date is right: contracts, payroll, settlement, compliance deadlines. Compares the national holiday list for a country and year across three independent providers and reports exactly where they agree and disagree, rather than picking one.

ParameterTypeDescription
country *stringISO 3166-1 alpha-2 country code, for example AU, US, GB.
year *integerCalendar year between 1975 and 2075.