{"uid":"cap_s_rD3LQgusxDLO8Zm-uKP","slug":"business-day-calculator-us-jp-a106c99b","name":"Business-Day Calculator (US & JP)","description":"Business-day calculator","url":"https://abi-mainnet-sandbox.benjaminbu.workers.dev/v1/business-days","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":["country","start","end"],"properties":{"end":{"type":"string","description":"YYYY-MM-DD"},"start":{"type":"string","description":"YYYY-MM-DD"},"country":{"enum":["JP","US"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_cjcXohYK21Fx0ebxbdUQz","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":"Counts the number of business days between two dates for the US or Japan, excluding weekends and public holidays.","exampleAgentPrompt":"How many business days are there between March 1, 2025 and March 31, 2025 in the US?","exampleUseCases":[{"title":"Payroll period working-day count","prompt":"How many business days are there in the US between April 1, 2025 and April 30, 2025? I need this for payroll processing."},{"title":"Japan project deadline calculation","prompt":"Can you tell me how many working days are between January 6, 2025 and March 31, 2025 in Japan? I'm planning a project timeline."},{"title":"SLA compliance window check","prompt":"How many US business days fall between February 3, 2025 and February 28, 2025? I need to verify our 20-business-day SLA window."}],"resultDescription":"Returns the number of business days (excluding weekends and country-specific public holidays) between the given start and end dates for the specified country (US or JP).","failureModes":["Missing required query parameters (country, start, end) returns an error","Unsupported country code (not US or JP) returns a validation error","Invalid date format (not YYYY-MM-DD) causes a parse error","Start date after end date may return zero or an error","Payment failure or missing x402 payment header returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a fast, authoritative count of business days for the US or Japan, properly accounting for country-specific public holidays. Prefer it over generic weekday-counting logic for payroll, SLA tracking, project scheduling, or financial settlement windows where holiday accuracy matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:39.697Z","isFirstParty":false}