{"uid":"cap_8ePVWPSthpdReusNqZI3o","slug":"business-days-counter-a217c420","name":"Business Days Counter","description":"Count business days between two dates (inclusive), skipping weekends and optional national public holidays (ISO country code).","url":"https://agent-tools.jbarkules.workers.dev/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","required":["start","end"],"properties":{"end":{"type":"string","description":"YYYY-MM-DD"},"start":{"type":"string","description":"YYYY-MM-DD"},"country":{"type":"string","description":"ISO 3166 alpha-2, optional"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"end":"2026-12-31","start":"2026-12-01","country":"US","inclusive":true,"business_days":22,"holidays_excluded":1}},"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_3vueEQ2E3netXwFkJeiW0","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":"Counts business days between two dates (inclusive), skipping weekends and optionally skipping national public holidays for a specified country.","exampleAgentPrompt":"How many business days are there between March 3, 2025 and April 18, 2025 in the US, excluding public holidays?","exampleUseCases":[{"title":"Contract deadline calculation","prompt":"How many business days are left between today, June 2, 2025, and the contract deadline of July 31, 2025 in the UK, skipping public holidays?"},{"title":"Invoice payment window","prompt":"Our net-30 payment terms start on May 1, 2025 — how many business days is that through May 30, 2025 in Germany, excluding national holidays?"},{"title":"Project sprint planning","prompt":"How many working days are there between April 7, 2025 and April 25, 2025 in France, not counting weekends or French public holidays?"}],"resultDescription":"Returns a JSON object with the count of business days in the specified date range (inclusive, excluding weekends and optionally national public holidays) and the number of holidays excluded from the count. Example: {\"business_days\": 21, \"holidays_excluded\": 1}.","failureModes":["Invalid date format (non-YYYY-MM-DD) returns an error","End date before start date may return zero or an error","Unsupported or invalid ISO country code may ignore holiday exclusion or return an error","Missing required start or end parameters returns a 400-level error","Very large date ranges may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a quick, accurate count of business days between two dates, especially when national public holidays need to be excluded. Ideal for contract timelines, payment term calculations, project planning, and SLA compliance checks where weekends and country-specific holidays must be skipped. Prefer this over manual date math or generic calendar libraries when working with multiple countries' holiday calendars.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:05:33.995Z","isFirstParty":false,"canonicalSlug":"business-days-counter-a217c420"}