Home › Everyday Life › Count Global Public-Holiday Reference Working Days

Count Global Public-Holiday Reference Working Days

Counts working and non-working dates in a 2026-2028 range using CLDR weekends plus included nationwide OpenHolidays public events.

When to use

You need a source-labelled nationwide public-holiday reference count for a supported country and regional or substitute-day semantics are not required.

Do not use when: The range needs a direct official authority, regional/local or employer calendar, substitute-day rules, or dates outside 2026-2028.

Example user requests

Formula

for each included date: working_days += reference status.is_working_day; non_working_days += not is_working_day

Normalize reversed endpoints, apply endpoint flags, and count the CLDR weekend plus included nationwide public-holiday events.

Inputs

ParameterTypeUnitRequiredDescription
start_datedateyesFirst date in 2026-2028.
end_datedateyesLast date in 2026-2028.
territoryenum: AD | AL | AT | BE | BG | BY | CH | CZ | DE | EE | ES | FR | HR | HU | IE | IT | LI | LT | LU | LV | MC | MD | MT | MX | NL | PL | PT | RO | RS | SE | SI | SK | SM | VA | ZAyesISO-style alpha-2 country code supported by the pinned OpenHolidays public-holiday reference snapshot.
include_start_datebooleandefault trueWhether start_date participates.
include_end_datebooleandefault trueWhether end_date participates.

Outputs

OutputTypeUnitDescription
normalized_start_datedateEarlier endpoint.
normalized_end_datedateLater endpoint.
working_daysintegerworking daysReference working dates counted.
non_working_daysintegerdaysWeekend and included public-holiday dates.
calendar_days_countedintegerdaysTotal dates included.
public_holidays_countedlistIncluded public-holiday events in the range.
territorystringNormalized uppercase country code.
territory_namestringEnglish country name from the source catalogue.
weekend_daysstring_listCLDR weekend convention used as the base rule.
holiday_namesstring_listIncluded nationwide public-holiday names on the date.
holiday_policystringNationwide public events only; regional and substitute-day rules are not inferred.
calendar_scopestringWeekday plus nationwide public-holiday reference.
calendar_profilestringglobal-public-holiday-reference.
substitute_day_policystringnot_inferred.
source_qualitystringOpen public-source aggregation, not a direct national authority feed.
dataset_versionstringPinned OpenHolidays snapshot version.
coverage_startdateFirst supported date.
coverage_enddateLast supported date.
source_commitstringImmutable source-data repository commit.

Example

France May reference range: {"start_date":"2026-05-01","end_date":"2026-05-15","territory":"FR","include_start_date":true,"include_end_date":true} → {"working_days":8}

GET https://tttkmbb.com/api/v1/calculate/global-public-holiday-working-days-between?start_date=2026-05-01&end_date=2026-05-15&territory=FR&include_start_date=true&include_end_date=true

Machine access

Sources

FAQ

Does this prove an employer's working schedule?

This reference package includes only nationwide public events from OpenHolidays for 2026-2028. It excludes regional/local holidays, substitute-day inference, employer, bank, exchange, school, religious and emergency closures. Verify material legal, payroll, banking or settlement decisions against the responsible authority.

What happens outside 2026-2028?

The calculator fails closed with OUT_OF_RANGE.

Related calculators