{"uid":"cap_-p8d-Vpsu-_qtYMce1kWm","slug":"24k-labs-date-difference-calculator-382bee05","name":"24K Labs Date Difference Calculator","description":"Difference between two dates/times in days, hours, minutes, and business days.","url":"https://api.24klabs.ai/api/date-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string"},"start":{"type":"string"}}},"responseSchema":{"type":"json","example":{"days":73}},"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_-zpa96M7EJk8I3LW99S18","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 difference between two dates/times in days, hours, minutes, and business days.","exampleAgentPrompt":"How many days, hours, and business days are between January 15, 2025 and March 28, 2025?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many calendar days and business days are left between today, June 10 2025, and our project deadline on July 31 2025?"},{"title":"Invoice payment duration tracking","prompt":"An invoice was issued on April 1, 2025 and paid on May 20, 2025 — how many days and business days did that take?"},{"title":"SLA breach calculation","prompt":"A support ticket was opened on March 3, 2025 at 9:00 AM and closed on March 7, 2025 at 4:30 PM — how many hours and business days did it take to resolve?"}],"resultDescription":"Returns the difference between two dates/times expressed as total days, total hours, total minutes, and business days (excluding weekends and possibly holidays), giving a comprehensive breakdown of elapsed or remaining time.","failureModes":["Invalid date format — malformed or unparseable date strings return an error","Missing required fields — omitting start or end date results in a validation error","End date before start date — may return negative values or an error depending on implementation","Unsupported timezone identifiers — ambiguous or invalid timezone strings may cause failures"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable computation of the time span between two dates in multiple units simultaneously (days, hours, minutes, and business days) without building custom date arithmetic. Especially useful when business day counting is required, which typically involves excluding weekends. Prefer this over general-purpose code execution when a lightweight, low-latency single API call is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:59.183Z","isFirstParty":false}