Skip to main content
Glama

calculate_business_days

Calculate business days between dates or add/subtract business days from a date, excluding weekends and optional public holidays.

Instructions

Calculate business days between two dates or add/subtract business days from a date. Skips weekends and optionally public holidays.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes'count': count business days between from and to. 'add': add N business days to from date.
fromYesStart date in YYYY-MM-DD format
toNoEnd date in YYYY-MM-DD format (required for 'count' action)
business_daysNoNumber of business days to add (required for 'add' action, negative to subtract)
countryNoCountry code for public holidays (e.g. CN, US). If omitted, only weekends are skipped.
timezoneNoIANA timezone. Defaults to UTC.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aleck31/mcp-chrono'

If you have feedback or need assistance with the MCP directory API, please join our Discord server