{"uid":"cap_rgDgQSnLoIblbP7I0-2Yt","slug":"agent402-tools-business-days-counter-0afc61b1","name":"agent402.tools Business Days Counter","description":"Count business days (Mon–Fri) between two dates, inclusive of the start, exclusive of the end. Optional list of holiday dates to skip.","url":"https://agent402.tools/api/business-days","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"description":"End date"},"from":{"description":"Start date"},"holidays":{"description":"Optional array of YYYY-MM-DD to exclude"}}},"responseSchema":{"type":"json","example":{"businessDays":5,"calendarDays":7}},"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_LAv80dVWQmJVUw8QYdP7n","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 (Monday–Friday) between two dates, with optional holiday exclusions","exampleAgentPrompt":"How many business days are there from January 6, 2025 to March 28, 2025, excluding January 20 and February 17 as holidays?","exampleUseCases":null,"resultDescription":"Returns a count of business days (Monday through Friday) between the provided start date (inclusive) and end date (exclusive), after skipping any dates in the optional holidays array.","failureModes":["Invalid date format causes 400 error — dates must be YYYY-MM-DD","Missing 'from' or 'to' fields returns validation error","End date before start date may return 0 or error","Payment not included or insufficient USDC causes 402 Payment Required","Malformed holiday array entries silently skipped or cause 400"],"whenToPreferThis":"Use this endpoint when you need a precise count of working weekdays between two dates, especially when you need to exclude specific public or company holidays. Ideal for deadline calculations, project scheduling, SLA computations, or any workflow that requires knowing elapsed or remaining business days.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:57:43.432Z","isFirstParty":false}