{"uid":"cap_EzxMI1QEwBr_FlRz09MNE","slug":"qty-date-deterministic-date-computation-805f4010","name":"Qty Date — Deterministic Date Computation","description":"Qty converts known units for free and interprets messy quantities, prices, recipes, sizes, and dates in code. It never invents a number.","url":"https://qty.vercel.app/v1/date?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"path":{"type":"string"},"price":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"path":{"type":"string"},"price":{"type":"string"},"method":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"see":{"mcp":"/mcp","docs":"/docs","llms":"/llms.txt","x402":"/.well-known/x402.json","openapi":"/openapi.json","llmsFull":"/llms-full.txt","agentCard":"/.well-known/agent-card.json"},"quantities":[{"unit":"date","textValue":"2026-10-07","definitionId":"date.working_days.v1"}]}},"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_I_kRBR7dG3o8HACWf4oDU","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":"Resolves and computes dates deterministically from natural language or structured date expressions, returning canonical date values without hallucination.","exampleAgentPrompt":"What date is exactly 45 working days from today? Use Qty's deterministic date endpoint so I get a reliable answer, not a guess.","exampleUseCases":[{"title":"Contract deadline in working days","prompt":"Our contract says deliverables are due 30 working days after signing on January 6, 2025 — what exact calendar date does that land on?"},{"title":"Payroll schedule calculation","prompt":"We pay employees 10 business days after the end of each month — what date should I schedule the next payroll run for if the month ends March 31 2025?"},{"title":"Regulatory filing deadline","prompt":"The regulation says we have 60 working days from the audit trigger date of February 3 2025 to file our response — what is the actual deadline date?"}],"resultDescription":"Returns a JSON object containing a quantities array where each entry has a unit of 'date', a textValue with the resolved ISO date string (e.g. '2026-10-07'), and a definitionId indicating which date computation rule was applied (e.g. 'date.working_days.v1'). Also includes a see object with links to docs, MCP, and related discovery resources.","failureModes":["Missing required 'input' parameter returns a validation error","Unrecognized or ambiguous date expression may return no quantities","Invalid path query parameter causes processing failure","Payment failure via x402 protocol blocks the request","Network timeout on vercel.app serverless cold start"],"whenToPreferThis":"Choose this endpoint when you need a guaranteed, deterministic date computation — especially for business day or working day offsets — and cannot risk an LLM hallucinating a wrong date. Ideal for contracts, compliance deadlines, scheduling, and payroll where exact dates are critical and must never be invented.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:39:27.596Z","isFirstParty":false,"canonicalSlug":"qty-date-deterministic-date-computation-805f4010"}