{"uid":"cap_emL1Fco-MqtvC7riMLqFS","slug":"webref-business-days-between-06dc2307","name":"WebRef Business Days Between","description":"Web standards and time reference for AI agents: HTTP status codes with what the client should do, retry semantics, MIME types and content-type matching, request-method safety and idempotency, plus deadline arithmetic - time until a moment, weekday and business-day checks, duration conversion and Unix timestamps. Pay per call in USDC on Base via x402 or USDC on Tempo via MPP. No signup, no API key, no KYC.","url":"https://webref.johnaio281.workers.dev/api/time/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","HEAD","DELETE"],"type":"string"},"queryParams":{"to":{"def":{"type":"string"},"type":"string"},"from":{"def":{"type":"string"},"type":"string"},"type":"object"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QGSJ6Bn5lVxIF8GI-BqHC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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","exampleAgentPrompt":"How many business days are there between March 3, 2025 and April 18, 2025?","exampleUseCases":[{"title":"Project deadline business day countdown","prompt":"How many business days are left between today, June 2, 2025, and our project deadline on July 15, 2025?"},{"title":"Invoice payment terms calculation","prompt":"Our contract says payment is due 30 business days after signing on May 1, 2025 — how many business days are between May 1 and June 13, 2025 so I can check if we're still within terms?"},{"title":"HR onboarding timeline check","prompt":"Our new hire starts on August 4, 2025 and onboarding ends September 5, 2025 — how many business days is that so we can plan the training schedule?"}],"resultDescription":"Returns the count of business days (Monday through Friday, excluding weekends) between the provided 'from' and 'to' dates, enabling deadline arithmetic and scheduling calculations.","failureModes":["Missing 'from' or 'to' query parameters returns an error","Invalid date format (non-ISO strings) may cause parsing failure","'from' date after 'to' date may return zero or negative count","Payment not provided or insufficient USDC triggers 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically count working days between two calendar dates for scheduling, deadline tracking, or SLA calculations, without writing custom calendar logic. Prefer this over manual arithmetic when weekends must be excluded and a lightweight, pay-per-call approach without signup is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:48.199Z","isFirstParty":false,"canonicalSlug":"webref-business-days-between-06dc2307"}