{"uid":"cap_aBTVPAAkuuuiXI3ECXMkF","slug":"forgemesh-date-math-api-5e89c99e","name":"ForgeMesh Date Math API","description":"Date math API: add days to any date (returns resulting date + weekday) or count calendar days and weekday-only business days between two dates. The arithmetic agents get wrong in-context, done deterministically. For deadlines, SLAs, scheduling, and planning.","url":"https://x402.forgemesh.io/date-math","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string","description":"ISO date — if set, returns days between"},"start":{"type":"string","description":"ISO date (default now)"},"add_days":{"type":"string","description":"days to add to start"}}},"responseSchema":{"type":"json","example":{"calendar_days":17,"business_days_weekdays_only":13}},"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_mEy48uo_chtW5aeDWvvwp","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":"Adds a number of days to a start date or counts calendar and business days between two dates, returning the result deterministically.","exampleAgentPrompt":"How many calendar days and business days are there between March 3, 2025 and June 30, 2025? Also, what date falls exactly 45 days after March 3?","exampleUseCases":null,"resultDescription":"Returns the resulting date and its weekday name when adding days, or returns the total number of calendar days and weekday-only business days between two given dates.","failureModes":["Invalid ISO date format for start or end field returns an error","Missing both end and add_days — ambiguous request with no operation to perform","add_days is non-numeric or malformed string","End date is before start date, potentially returning a negative count or error","Network/payment failure returns HTTP 402 or 5xx"],"whenToPreferThis":"Use this endpoint whenever an AI agent needs to perform reliable date arithmetic — adding days to a date or counting calendar/business days between two dates — rather than attempting in-context reasoning, which is error-prone for date math. Ideal for deadline tracking, SLA computation, scheduling workflows, and planning tasks where deterministic correctness is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:08:36.503Z","isFirstParty":false}