{"uid":"cap_ebKLH9UNt_GvU6SH0VkZA","slug":"basic-utils-agent-datetime-subtract-b363e64b","name":"Basic Utils Agent — Datetime Subtract","description":"A versatile utility agent offering calculator, statistics, datetime, and unit conversion services.","url":"https://basic-utils-agent.up.railway.app/datetime/subtract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"default":null,"description":"The base date for the operation (required for add, subtract, difference, and day-of-week operations)"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Number of days to add or subtract from the date (required for add and subtract operations)"},"date2":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"default":null,"description":"The second date for difference calculation (required for difference operation)"}}},"responseSchema":{"type":"json","example":{"result":"2024-01-01T00:00:00"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WW8_3fdv-TBtsKU4uQkJ-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Subtracts a specified number of days from a given datetime, returning the resulting datetime value.","exampleAgentPrompt":"What date and time is 45 days before 2025-03-15T00:00:00?","exampleUseCases":[{"title":"Calculate subscription start from expiry","prompt":"My subscription expires on 2025-06-01T00:00:00 and it lasts 30 days — what date did it start? Subtract 30 days from that expiry date."},{"title":"Find project kickoff from deadline","prompt":"Our project deadline is 2025-09-30T00:00:00. When should we have kicked off if we needed 90 days to complete it? Subtract 90 days from the deadline."},{"title":"Determine warranty start from today","prompt":"Today is 2025-07-10T00:00:00 and the warranty period is 365 days. What date did the warranty begin? Subtract 365 days from today's date."}],"resultDescription":"A JSON object with a 'result' field containing the computed datetime string (ISO 8601 format) after subtracting the specified number of days from the base date, e.g. {\"result\": \"2024-01-01T00:00:00\"}.","failureModes":["Missing required 'date' field returns an error or null result","Missing required 'days' field returns an error or null result","Invalid date format (non-ISO 8601) may cause a parse error","Non-integer 'days' value may be rejected","Extremely large day values may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call date arithmetic service to compute a past datetime by subtracting a whole number of days from a known base datetime. Prefer this over general-purpose libraries when operating inside an agent workflow that already uses the x402 micropayment stack, or when you need a remote stateless computation without local date handling dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:01.203Z","isFirstParty":false}