{"uid":"cap_DhFRXovqX2GKYJsDxDvih","slug":"agenttools-business-days-calculator-5dc2a89b","name":"AgentTools Business Days Calculator","description":"Count business days (Mon–Fri) between two dates, with weekend and holiday breakdown. Provide a country code and real public holidays (via Nager.Date) are excluded too. Use this when an agent needs to working days between dates, optionally minus public holidays.","url":"https://agentstoolshub.com/api/v1/live/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":"End date"},"start":{"type":"string","description":"Start date"},"country":{"type":"string","description":"Excludes that country's public holidays"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZzmRsuqZVVJYF19xEpu5O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts working days (Monday–Friday) between two dates, excluding weekends and optionally excluding public holidays for a specified country.","exampleAgentPrompt":"How many business days are there between March 3, 2025 and April 18, 2025, excluding US public holidays?","exampleUseCases":[{"title":"Project deadline estimation","prompt":"How many working days do we have between February 10 and March 28, 2025, excluding UK public holidays? I need to figure out if there's enough time to complete the project."},{"title":"Invoice payment terms compliance","prompt":"A client invoice is dated January 15, 2025 and has net-30 business days payment terms — what's the exact due date if we exclude US holidays?"},{"title":"HR notice period calculation","prompt":"An employee handed in their resignation today, April 7, 2025. If their contract requires 20 business days' notice, excluding German public holidays, what is their last working day?"}],"resultDescription":"Returns a structured object containing the total number of business (working) days between the two dates, the number of weekend days excluded, the number of public holidays excluded (if a country code was provided), and a list of the specific public holidays that fell within the range.","failureModes":["Missing start or end date parameter returns a 400 error","Invalid date format (non-ISO 8601) causes a parse error","Unsupported or invalid country code returns an error or falls back to no holiday exclusion","End date before start date may return zero or a negative count","Network errors to Nager.Date public holiday API could cause holiday lookup to fail"],"whenToPreferThis":"Use this endpoint when you need a precise count of working days between two dates, especially when you need to exclude public holidays for a specific country. It is ideal for deadline calculations, SLA tracking, invoice payment terms, HR notice periods, and project scheduling. Prefer this over manual date arithmetic whenever country-specific holiday data matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:48.927Z","isFirstParty":false,"canonicalSlug":"agenttools-business-days-calculator-5dc2a89b"}