{"uid":"cap_bT5i_MKhdAKLVqg3snIUy","slug":"fastx402-date-difference-calculator-982229e4","name":"FastX402 Date Difference Calculator","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/date-diff?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":"Second date, YYYY-MM-DD (not before start)"},"start":{"type":"string","description":"First date, YYYY-MM-DD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"end":{"type":"string"},"days":{"type":"integer"},"start":{"type":"string"},"weeks":{"type":"integer"},"calendar":{"type":"object","properties":{"days":{"type":"integer"},"years":{"type":"integer"},"months":{"type":"integer"}}},"business_days":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"end":"2026-03-01","days":731,"start":"2024-02-29","weeks":104,"calendar":{"days":1,"years":2,"months":0},"business_days":522}},"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_IJCViNcAEnc0GkA_-8pM7","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":"Calculates the number of days, weeks, business days, and calendar breakdown (years, months, days) between two dates","exampleAgentPrompt":"How many days and business days are there between March 1, 2025 and December 31, 2025?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many business days do I have left between today, June 10, 2025 and my project deadline on September 30, 2025?"},{"title":"Contract duration calculation","prompt":"I signed a contract on January 15, 2024 and it expires on January 15, 2026 — how many total days, weeks, and calendar months is that?"},{"title":"Age or anniversary milestone","prompt":"How many days and weeks is it from February 29, 2024 to March 1, 2026, and what's the calendar breakdown in years, months, and days?"}],"resultDescription":"Returns a JSON object with total days, total weeks, business days, and a calendar breakdown of years, months, and days between the two input dates. Example: {start:'2024-02-29', end:'2026-03-01', days:731, weeks:104, business_days:522, calendar:{years:2, months:0, days:1}}","failureModes":["Missing required 'start' or 'end' query parameter returns an error","End date before start date returns an error or undefined behavior","Malformed date strings (not YYYY-MM-DD) cause parsing failures","Invalid calendar dates (e.g. 2023-02-30) return an error","Payment failure via x402 results in HTTP 402 response before computation"],"whenToPreferThis":"Use this endpoint when an agent needs to calculate the exact number of days, weeks, business days, or calendar-unit breakdown between two specific dates without requiring account setup or API keys. It is ideal for lightweight, pay-per-call date math in automated workflows where spinning up a full calendar library is overkill. Prefer this over manual computation when business day accuracy (excluding weekends) is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:42:56.227Z","isFirstParty":false,"canonicalSlug":"fastx402-date-difference-calculator-982229e4"}