{"slug":"agents-204-168-199-108-sslip-io-v1-util-date-calc-03295e","title":"Exact date math so the agent does not miscount","host":"agents.204-168-199-108.sslip.io","method":"GET","resource":"https://agents.204-168-199-108.sslip.io/v1/util/date-calc","category":"other","description":"Exact date math so the agent does not miscount: add or subtract a duration (\"3 months, 2 days\", \"-10d\", \"2w\", \"15 business days\", ISO \"P1Y2M10D\", hours/minutes) to a date, and/or get the difference to another date as calendar years/months/days plus total days, weeks, hours, seconds and Mon–Fri busin","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":2,"answered_7d":2,"latency_ms_median":945,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["aws:base","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"add":"1 month, 10 business days","date":"2026-01-31","to":"2026-12-25"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"add":{"description":"Duration to add, e.g. '3 months, 2 days', '2w', '15 business days', '36h', 'P1Y2M10D'","type":"string"},"date":{"description":"Start date: YYYY-MM-DD, ISO date-time, unix seconds/ms, 'today' (default) or 'now'","type":"string"},"subtract":{"description":"Duration to subtract (same format as add)","type":"string"},"to":{"description":"Optional second date to measure the difference to","type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":928,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":962,"error":null}],"description_full":"Exact date math so the agent does not miscount: add or subtract a duration (\"3 months, 2 days\", \"-10d\", \"2w\", \"15 business days\", ISO \"P1Y2M10D\", hours/minutes) to a date, and/or get the difference to another date as calendar years/months/days plus total days, weeks, hours, seconds and Mon–Fri business days. Every date comes back with weekday, ISO week, day of year, quarter, leap year, days in month and unix time. Month-end safe (Jan 31 + 1 month = Feb 28/29). Use for deadlin","last_updated":"2026-11-25T22:43:20.983Z","schemes":["exact"]}