{"uid":"cap_XMV3LtNBBu6XCJ0YXa2F_","slug":"business-day-calculator-6ef8dea2","name":"Business Day Calculator","description":"Pay-per-call utilities for AI agents over x402, USDC on Base.","url":"https://agents.crowdspark.me/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_3SjINyH9cEVWppBylEo6X","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 working days between two dates, skipping weekends and national public holidays for a given country.","exampleAgentPrompt":"How many business days are there between December 1 and December 31, 2026 in the US, excluding weekends and public holidays?","exampleUseCases":[{"title":"SLA deadline tracking for support tickets","prompt":"We received a support ticket on March 3, 2025 with a 10-business-day SLA. Can you count the business days between March 3 and March 17, 2025 in the UK so I know if we're within the deadline?"},{"title":"Invoice due date calculation","prompt":"I issued an invoice on January 15, 2026 with net-30 business days payment terms in Germany. How many business days are between January 15 and February 28, 2026, excluding German public holidays?"},{"title":"Legal contract deadline verification","prompt":"Our contract requires delivery within 45 business days from signing on April 1, 2026 in Canada. How many business days fall between April 1 and June 15, 2026 in Canada, skipping weekends and national holidays?"}],"resultDescription":"Returns a JSON object with the start date, end date, country code, business day count, number of holidays excluded, and whether the count is inclusive. Example: {\"start\":\"2026-12-01\",\"end\":\"2026-12-31\",\"country\":\"US\",\"inclusive\":true,\"business_days\":22,\"holidays_excluded\":1}.","failureModes":["Invalid date format (not YYYY-MM-DD) causes a 400 bad request","Invalid or unsupported ISO country code returns an error or ignores holiday data","End date before start date may return zero or negative business days","Missing required start or end parameters causes a 400 validation error","Country code not recognized may default to no holiday exclusions"],"whenToPreferThis":"Choose this endpoint when you need accurate business day counts that account for both weekends and country-specific public holidays, rather than a simple weekday counter. Ideal for SLA enforcement, invoice due date computation, legal deadline verification, and shipping scheduling where national holidays vary by country. Prefer this over generic date math when the country context matters and holiday-aware accuracy is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:22.103Z","isFirstParty":false,"canonicalSlug":"business-day-calculator-6ef8dea2"}