{"uid":"cap_5hkxECGd9QTCitV4ahr0D","slug":"delx-days-between-61f8447d","name":"Delx Days Between","description":"Whole days between two ISO dates. Call when you compute agent SLA windows or age. Returns days and ok for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/days-between","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string","description":"Input field: end."},"start":{"type":"string","description":"Input field: start."}}},"responseSchema":{"type":"json","example":{"ok":true,"days":5,"schema":"delx/util-days-between/v1"}},"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_qEXuCbm1j-ktvqOM_aVf0","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 whole number of days between two ISO 8601 date strings","exampleAgentPrompt":"How many whole days are there between 2024-01-15 and 2024-06-30? I need to compute the SLA window for a contract.","exampleUseCases":[{"title":"SLA window calculation for agent","prompt":"My contract started on 2024-03-01 and ends on 2024-09-15 — how many whole days is that SLA window?"},{"title":"Customer subscription age check","prompt":"A user signed up on 2023-11-20 and today is 2024-06-10 — how many days old is their subscription?"},{"title":"Days until project deadline","prompt":"How many whole days are left between today, 2024-06-12, and our project deadline on 2024-08-01?"}],"resultDescription":"Returns a JSON object with a numeric 'days' field representing the whole number of days between the two ISO dates, and an 'ok' boolean indicating success. No external data sources are used; computation is local and deterministic.","failureModes":["Invalid or non-ISO date strings in start or end fields return an error","Missing start or end parameter causes a bad request","Reversed date order (end before start) may return a negative value or error","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, fee-based local computation of whole days between two ISO dates — especially for agent SLA windows, subscription age, or deadline countdowns — with no external API keys, no data retention, and a predictable $0.001 USDC per-call cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:49.771Z","isFirstParty":false}