{"uid":"cap_03V4H4WtVEO8OKFOyi9N7","slug":"business-days-calculator-31d4ab82","name":"Business Days Calculator","description":"Add/subtract business days (skips weekends + given holidays). Send { start?, addDays, holidays?, timezone? }.","url":"https://x402-services-production.up.railway.app/api/business-days","method":"POST","headers":{},"bodySchema":{"type":"object","required":["addDays"],"properties":{"start":{"type":"string","description":"ISO start date, default now"},"addDays":{"type":"number","description":"Business days to add (can be negative)"},"holidays":{"type":"object","description":"Array of YYYY-MM-DD holiday strings"},"timezone":{"type":"string","description":"IANA tz"}}},"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_fERBy0a1dS_S9ODooGwuM","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":"Calculates a future or past date by adding or subtracting a specified number of business days from a start date, with support for custom holidays and timezones.","exampleAgentPrompt":"What date is 5 business days from today (2025-01-15), excluding New Year's Day and MLK Day, in the America/New_York timezone?","exampleUseCases":[{"title":"Trade settlement date calculation","prompt":"My trade settled today, January 15 2025. What is the T+2 settlement date in business days, excluding US holidays like MLK Day, using the America/New_York timezone?"},{"title":"Contract deadline computation","prompt":"I need to deliver a document 10 business days from February 1st 2025. Skip President's Day on Feb 17. What's the exact deadline date?"},{"title":"Negative offset for prior business day","prompt":"What was the business date 3 working days before March 5th 2025, using US Eastern time and excluding no extra holidays?"}],"resultDescription":"Returns the computed calendar date after adding or subtracting the specified number of business days from the start date, accounting for weekends and any custom holidays provided, expressed as an ISO date string.","failureModes":["Missing required addDays field returns a 400 validation error","Invalid ISO date format for start date causes a parsing error","Unrecognized IANA timezone string results in a timezone resolution error","Non-integer or extremely large addDays value may cause unexpected results","Malformed holiday array entries (non YYYY-MM-DD format) may be ignored or cause errors"],"whenToPreferThis":"Use this endpoint when you need programmatic, pay-per-call business day arithmetic without setting up a dedicated calendar library or service — especially useful for trading settlement dates (T+2, T+3), contract deadlines, or financial workflows that require excluding weekends and custom holidays across timezones. Prefer this over generic date libraries when running in an agent context without local compute or when you need a reliable, stateless, hosted computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:52:48.416Z","isFirstParty":false}