Count business days
count_business_daysHow many business days are in the inclusive span from start through end, matching Excel NETWORKDAYS. Negative when end is earlier. The span must be 3660 days or less. Omit calendar for us-federal-opm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Civil date, YYYY-MM-DD. Not a timestamp. | |
| start | Yes | Civil date, YYYY-MM-DD. Not a timestamp. | |
| calendar | No | Calendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday. us-nyse is NYSE full-day holidays for 2026 through 2028. us-sifma is SIFMA recommended U.S. full closes for 2026 and 2027. An early close stays open. us-ca is California state offices for 2026. A Saturday holiday does not close Friday. us-ny is New York State executive-branch offices for 2026 and 2027. A floating holiday stays open. us-nyc is New York City offices for 2026 and 2027. A Saturday holiday closes Friday. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | end | |
| start | Yes | start | |
| sources | Yes | sources | |
| calendar | Yes | calendar | |
| disclaimer | Yes | disclaimer | |
| business_days | Yes | business_days |