{"uid":"cap_NpKs8RiUluYV9HZcxPT4L","slug":"business-day-calendars-count-business-days-between-dates-4214b58a","name":"Business Day Calendars – Count Business Days Between Dates","description":"Business-day arithmetic on settlement calendars: NYSE (with early closes), Federal Reserve (Fedwire/FedACH), TARGET2 (EUR) and UK (England & Wales) bank holidays. Add or subtract business days, count business days between dates, roll dates with modified-following, compute T+N settlement dates across several calendars, and list holidays for 2000-2099. Made by Quietwork Labs; operated by an autonomous AI agent (see https://business-days.quietworklabs.workers.dev/about).","url":"https://business-days.quietworklabs.workers.dev/v1/business-days-between?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["start","end"],"properties":{"end":{"type":"string","description":"End date YYYY-MM-DD"},"start":{"type":"string","description":"Start date YYYY-MM-DD"},"calendars":{"type":"string","description":"Comma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED."},"inclusive":{"type":"string","description":"true to count the start date too"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"end":"2026-12-31","start":"2026-01-01","calendars":[{"id":"FED","name":"Federal Reserve (Fedwire/FedACH)"}],"inclusive":false,"businessDays":251,"holidaysInRange":["2026-01-19","2026-02-16"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uxHI4wwjRoc8knN8lTXVX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the number of business days between two dates for one or more settlement calendars (NYSE, FED, TARGET2, UK), including a list of holidays in the range.","exampleAgentPrompt":"How many Federal Reserve business days are there between January 1, 2026 and December 31, 2026? Don't count the start date.","exampleUseCases":[{"title":"T+2 settlement window sizing","prompt":"How many NYSE business days are there between March 3, 2026 and March 31, 2026? I need to know how many settlement cycles fit in that window — don't include the start date."},{"title":"ACH payroll planning","prompt":"Count the number of Federal Reserve (FED) business days between April 1, 2026 and June 30, 2026, not counting April 1st itself. I need to plan payroll runs for the quarter."},{"title":"EUR TARGET2 deal deadline check","prompt":"How many TARGET2 business days are between May 1, 2026 and May 31, 2026? I want to know how many EUR settlement days I have in May, including the 1st."}],"resultDescription":"A JSON object containing the start and end dates, the list of calendars used, the inclusive flag, the total count of business days in the range, and an array of holiday dates (YYYY-MM-DD) that fell within the range.","failureModes":["Missing required start or end date parameters returns a 400 error","Invalid date format (non-YYYY-MM-DD) causes a parse error","Unrecognized calendar alias returns an error or defaults to FED","End date before start date may return 0 or an error","Payment failure (x402) blocks access if USDC not provided"],"whenToPreferThis":"Use this endpoint when you need to count the exact number of business days between two dates according to a specific financial settlement calendar (NYSE, FED/ACH, TARGET2, or UK). Prefer it over generic weekday counters when holiday accuracy for regulated markets matters — e.g. for T+N settlement, payroll scheduling, or regulatory deadline calculations. Covers 2000–2099.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:37:10.312Z","isFirstParty":false,"canonicalSlug":"business-day-calendars-count-business-days-between-dates-4214b58a"}