{"uid":"cap_MDxkpez977I0XnhO5eu-g","slug":"signaldesk-ai-date-difference-in-days-89b1d8a8","name":"SignalDesk AI – Date Difference in Days","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/date/difference-days?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10,"minLength":10,"description":"Gregorian date YYYY-MM-DD, interpreted in UTC."},"start":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10,"minLength":10,"description":"Gregorian date YYYY-MM-DD, interpreted in UTC."}}},"responseSchema":{"type":"json","example":{"days":4}},"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_ZHQEe4nBezjc7X1bARpZD","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":"Computes the number of calendar days between two UTC Gregorian dates","exampleAgentPrompt":"How many days are between 2024-03-15 and 2025-01-01?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many days are left between today, 2025-07-10, and our project deadline on 2025-09-30?"},{"title":"Age or anniversary calculation","prompt":"Can you tell me how many days it's been since my company was founded on 2019-04-22, counting up to today, 2025-07-10?"},{"title":"Event duration measurement","prompt":"Our conference runs from 2025-08-05 to 2025-08-19 — how many days is that in total?"}],"resultDescription":"Returns a JSON object with a single integer field `days` representing the number of calendar days between the start and end dates interpreted in UTC (e.g. {\"days\": 4}).","failureModes":["Invalid date format (not YYYY-MM-DD) returns an error","Dates outside the Gregorian calendar range may fail","Swapped start/end may return zero or negative result","Missing required fields cause a validation error","x402 payment not provided results in 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a simple, authoritative integer count of calendar days between two known UTC dates. Prefer it over in-context LLM arithmetic when precision matters and dates must be treated as UTC Gregorian. At $0.001 USDC per call it is cost-effective for frequent programmatic date-span calculations in workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:42:17.492Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-date-difference-in-days-89b1d8a8"}