Home › Everyday Life › Count Global Reference Working Days

Count Global Reference Working Days

Counts working and non-working dates in a 2026-2028 range using OpenWorkdays national-scope public-holiday data and country weekend rules.

When to use

You need a broad national-scope reference count and regional or employer semantics are not required.

Do not use when: The range needs a direct official authority, regional/local or employer calendar, 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 source country weekends plus public-holiday events.

Inputs

ParameterTypeUnitRequiredDescription
start_datedateyesFirst date in 2026-2028.
end_datedateyesLast date in 2026-2028.
territoryenum: AD | AE | AF | AG | AI | AL | AM | AO | AR | AS | AT | AU | AW | AX | AZ | BA | BB | BD | BE | BF | BG | BH | BI | BJ | BL | BM | BN | BO | BQ | BR | BS | BT | BW | BY | BZ | CA | CC | CD | CF | CG | CH | CI | CK | CL | CM | CN | CO | CR | CU | CV | CW | CX | CY | CZ | DE | DJ | DK | DM | DO | DZ | EC | EE | EG | EH | ER | ES | ET | FI | FJ | FK | FM | FO | FR | GA | GB | GD | GE | GF | GG | GH | GI | GL | GM | GN | GP | GQ | GR | GS | GT | GU | GW | GY | HK | HN | HR | HT | HU | ID | IE | IL | IM | IN | IQ | IR | IS | IT | JE | JM | JO | JP | KE | KG | KH | KI | KM | KN | KP | KR | KW | KY | KZ | LA | LB | LC | LI | LK | LR | LS | LT | LU | LV | LY | MA | MC | MD | ME | MF | MG | MH | MK | ML | MM | MN | MO | MP | MQ | MR | MS | MT | MU | MV | MW | MX | MY | MZ | NA | NC | NE | NF | NG | NI | NL | NO | NP | NR | NU | NZ | OM | PA | PE | PF | PG | PH | PK | PL | PM | PN | PR | PS | PT | PW | PY | QA | RE | RO | RS | RU | RW | SA | SB | SC | SD | SE | SG | SH | SI | SJ | SK | SL | SM | SN | SO | SR | SS | ST | SV | SX | SY | SZ | TC | TD | TF | TG | TH | TJ | TK | TL | TM | TN | TO | TR | TT | TV | TW | TZ | UA | UG | UM | US | UY | UZ | VA | VC | VE | VG | VI | VN | VU | WF | WS | XK | YE | YT | ZA | ZM | ZWyesISO-style alpha-2 country code supported by the pinned OpenWorkdays 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 public-holiday dates.
calendar_days_countedintegerdaysTotal dates included.
public_holidays_countedlistSource public-holiday events in the range.
territorystringNormalized uppercase country code.
territory_namestringCalcgrid display name; TW is displayed as 中国台湾省 while the machine code remains TW.
source_territory_namestringRaw country name from the hash-pinned OpenWorkdays source catalogue.
weekend_daysstring_listWeekend convention supplied by the source country file.
working_weekend_daybooleanTrue when the source explicitly marks a weekend date as an official working day.
holiday_namesstring_listIncluded national-scope public-holiday names on the date.
holiday_observedbooleanTrue when an included event is marked observed by the source.
holiday_estimatedbooleanTrue when an included event is marked estimated by the source.
holiday_policystringNational-scope events with source observed/estimated flags preserved.
calendar_scopestringNational reference plus country weekend and explicit working-weekend dates.
calendar_profilestringglobal-working-day-reference.
substitute_day_policystringSource flags are preserved; no new substitute-day rule is inferred.
source_qualitystringOpen derived reference, not a direct national authority feed.
dataset_versionstringPinned OpenWorkdays snapshot version.
coverage_startdateFirst supported date.
coverage_enddateLast supported date.
source_urlstringPinned OpenWorkdays source index.

Example

Australia October reference range: {"start_date":"2026-10-01","end_date":"2026-10-15","territory":"AU","include_start_date":true,"include_end_date":true} → {"working_days":11}

GET https://tttkmbb.com/api/v1/calculate/global-reference-working-days-between?start_date=2026-10-01&end_date=2026-10-15&territory=AU&include_start_date=true&include_end_date=true

Machine access

Sources

FAQ

Does this prove an employer's schedule?

This is a broad national-scope reference generated from an open rules-based library. It may omit regional, employer, bank, exchange, school or one-off authority closures, and future lunar/late-proclaimed dates can be marked estimated. 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