{"uid":"cap_7ptQFacTK7p1e1umipOS6","slug":"lordevo-date-calculator-126bfa77","name":"Lordevo Date Calculator","description":"Date calculator: add durations, business days, difference between dates: Date arithmetic offline: adds or subtracts durations (ISO 8601 or plain text, including business days with your weekend and holiday list), and gives the difference to a second date in calendar days, weeks, years/months/days and","url":"https://shop.lordevo.com/api/quick/date-calc?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":["date"],"properties":{"tz":{"type":"string","description":"IANA time zone for today/now and local times (default UTC)"},"add":{"type":"string","description":"Duration to add: ISO 8601 (P1M2D, PT4H) or text (3 days, -2 weeks, 10 business days, 4h 30m; m = minutes, mo = months)"},"date":{"type":"string","description":"Date: YYYY-MM-DD, ISO 8601 date-time (2026-11-01T09:30, optional Z or +08:00), Unix seconds, today or now"},"until":{"type":"string","description":"Second date: returns the difference in days, weeks, years/months/days and business days"},"weekend":{"type":"string","description":"Weekend days for business-day math, e.g. sat,sun (default), fri,sat, sun or none"},"holidays":{"type":"string","maxLength":5000,"description":"Dates to skip as holidays in business-day math: up to 400 YYYY-MM-DD, comma-separated"},"subtract":{"type":"string","description":"Duration to subtract (same formats as add)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["tool","timezone","start"],"properties":{"tool":{"type":"string"},"input":{"type":"object"},"notes":{"type":"array","items":{"type":"string"}},"start":{"type":"object","properties":{"utc":{"type":["string","null"]},"date":{"type":"string"},"quarter":{"type":"integer"},"weekday":{"type":"string"},"datetime":{"type":["string","null"]},"iso_week":{"type":"string"},"is_weekend":{"type":"boolean"},"day_of_year":{"type":"integer"},"is_leap_year":{"type":"boolean"},"unix_seconds":{"type":["integer","null"]},"days_in_month":{"type":"integer"},"is_business_day":{"type":"boolean"}}},"result":{"type":["object","null"],"properties":{"utc":{"type":["string","null"]},"date":{"type":"string"},"quarter":{"type":"integer"},"weekday":{"type":"string"},"datetime":{"type":["string","null"]},"iso_week":{"type":"string"},"is_weekend":{"type":"boolean"},"day_of_year":{"type":"integer"},"is_leap_year":{"type":"boolean"},"unix_seconds":{"type":["integer","null"]},"days_in_month":{"type":"integer"},"is_business_day":{"type":"boolean"}}},"applied":{"type":["object","null"]},"timezone":{"type":"string"},"difference":{"type":["object","null"],"properties":{"days":{"type":"integer"},"years":{"type":"integer"},"months":{"type":"integer"},"direction":{"enum":["future","past","same"],"type":"string"},"business_days":{"type":"integer"},"calendar_days":{"type":"integer"},"total_seconds":{"type":"integer"}}},"business_rules":{"type":"object"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kY4-F9wuBV7gQ7FMECUkN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs offline date arithmetic: adds/subtracts durations (ISO 8601 or plain text, including business days), and computes the difference between two dates in multiple units.","exampleAgentPrompt":"What date is 45 business days from 2025-03-01, skipping Saturdays and Sundays, and also skipping the holidays 2025-04-18 and 2025-05-26? Show the result in UTC.","exampleUseCases":[{"title":"Project deadline from start date","prompt":"Our project kicks off on 2025-04-01 — what is the delivery date if we have 60 business days to complete it, treating Saturday and Sunday as the weekend and skipping US holidays 2025-05-26, 2025-07-04, and 2025-09-01?"},{"title":"Days remaining until contract expiry","prompt":"How many calendar days and business days are left between today and 2026-01-15? Use sat,sun as the weekend."},{"title":"Payroll date calculation with holidays","prompt":"Our payroll runs every 14 calendar days starting from 2025-03-15 — what is the next 5 pay dates if I add 14 days each time, and can you also tell me what day of the week each one falls on?"}],"resultDescription":"A JSON object containing: the resolved start date and its metadata (weekday, ISO week, quarter, day of year, leap year flag, business day flag, unix seconds, UTC datetime), the computed result date (after adding/subtracting durations) with the same metadata, and—if an 'until' date is provided—the difference between the start and second date expressed in calendar days, weeks, years/months/days, and business days. May also include notes about edge cases.","failureModes":["Missing required 'date' parameter returns an error","Unrecognized duration format in 'add' or 'subtract' causes a parse error","Invalid IANA timezone string causes a timezone resolution error","'holidays' string exceeding 5000 characters or 400 dates may be rejected","Invalid date string format returns a parsing failure","Ambiguous duration abbreviations (e.g. 'm' for minutes vs months) may be misinterpreted"],"whenToPreferThis":"Choose this endpoint when you need offline, deterministic date arithmetic with support for business-day calculations, custom weekends, and holiday exclusions. It is especially useful when you need results in multiple formats simultaneously (days, weeks, years/months/days) or when you need rich date metadata (weekday, quarter, ISO week) alongside the calculation. Prefer it over general-purpose date libraries when operating within an agent pipeline that requires an API call and cannot execute local code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:20.817Z","isFirstParty":false,"canonicalSlug":"lordevo-date-calculator-126bfa77"}