{"uid":"cap_fidgTRSRJW7-cf_ukO0Ch","slug":"polyform-business-days-calculator-bda11c35","name":"Polyform Business Days Calculator","description":"Business days between two dates (exclusive of end), skipping weekends and US federal holidays; also returns the holiday list in range. Pure computation. JSON.","url":"https://api.polyform.org/v1/time/business-days?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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"end":"2026-02-01","start":"2026-01-01","holidays":["2026-01-01","2026-01-19"],"businessDays":20}},"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_5Zo9JYL3MPyxCDLlY_uwH","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":"Calculates the number of business days between two dates, excluding weekends and US federal holidays, and returns the list of holidays in that range.","exampleAgentPrompt":"How many business days are there between January 1, 2026 and February 1, 2026, skipping weekends and US federal holidays? Also tell me which holidays fall in that range.","exampleUseCases":[{"title":"Contract deadline in business days","prompt":"Our contract starts on March 3, 2026 and has a 30-business-day delivery window — what calendar date does that land on, and how many business days are there between March 3 and April 30, 2026?"},{"title":"SLA compliance window check","prompt":"We have a support SLA that requires resolution within 5 business days. How many business days are there between June 15, 2026 and June 25, 2026, and are there any US federal holidays in that window?"},{"title":"Payroll processing schedule","prompt":"How many business days are in Q1 2026 — from January 1 to March 31 — excluding weekends and US federal holidays? I need the holiday list too so I can plan payroll runs."}],"resultDescription":"Returns a JSON object with the start date, end date, total count of business days (excluding weekends and US federal holidays, with the end date itself excluded), and an array of holiday dates that fall within the range.","failureModes":["Missing or malformed start/end date parameters returns an error","End date before start date may return 0 or an error","Dates outside supported range may not return accurate holiday data","Non-US holidays are not accounted for — result reflects only US federal holidays","Payment failure via x402 returns HTTP 402 and the call is not completed"],"whenToPreferThis":"Choose this endpoint when you need a reliable, pure-computation business day count that correctly accounts for both US federal holidays and weekends, especially when you also need the list of holidays in that range. Ideal for SLA calculations, contract durations, payroll scheduling, or any deadline arithmetic in a US business context. Prefer this over a generic date library when you need an authoritative US federal holiday list included in the response without maintaining your own holiday database.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:34:19.817Z","isFirstParty":false,"canonicalSlug":"polyform-business-days-calculator-bda11c35"}