{"uid":"cap_x5r3Rd2Ik4n6GMvMvqIyD","slug":"24k-labs-date-difference-calculator-0d458292","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/v1/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_-Tyk6gkBoPnwBSDEBppW2","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, minutes, and business days are there between March 15, 2025 and July 4, 2025?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many days and business days are left between today, June 10 2025, and our project deadline on August 29 2025?"},{"title":"Invoice payment duration tracking","prompt":"How many calendar days and business days passed between the invoice date January 3 2025 and the payment date February 14 2025?"},{"title":"Event planning time gap","prompt":"Can you tell me how many total hours, days, and working days there are between now — June 10 2025 at 9am — and our product launch on September 1 2025 at 10am?"}],"resultDescription":"Returns the computed difference between the two input dates/times broken down into days, hours, minutes, and business days (excluding weekends, and potentially public holidays).","failureModes":["Invalid date format provided — returns a 400 error with a format hint","End date is before start date — may return a negative value or error","Non-existent dates (e.g. February 30) cause a 422 validation error","Missing required start or end date fields — returns a 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a quick, accurate temporal difference calculation that includes both calendar and business day breakdowns, without standing up your own date math logic. Especially useful in scheduling, invoicing, SLA tracking, or any workflow where business days (excluding weekends) matter alongside raw calendar units.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:50:30.008Z","isFirstParty":false}