Catalog/datetime-sla-due-date

Date & Time

SLA due-date calculator API

Adds a number of working hours to a start datetime against a workday window, weekend mask and holidays, rolling overflow into subsequent working days to return the exact SLA breach/due instant. Answers 'When is a 10-working-hour SLA due?', 'Deadline counting only business hours.'.

Price$0.06per request
MethodPOST
Route/v1/datetime/sla-due-date
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
datetimesladue-datedeadlineworking-hoursbusiness-hourssupportticket
API URLhttps://x402.hexl.dev/v1/datetime/sla-due-date
Integration docs
Example request
{
  "start": "2026-03-06T15:00:00Z",
  "slaHours": 10
}
Example response
{
  "start": "2026-03-06T15:00:00.000Z",
  "slaHours": 10,
  "workdayStart": "09:00",
  "workdayEnd": "17:00",
  "dueDate": "2026-03-09T17:00:00.000Z",
  "dueWeekday": "Monday",
  "interpretation": "An SLA of 10 working hour(s) from 2026-03-06T15:00:00.000Z is due 2026-03-09T17:00:00.000Z (Monday), counting only 09:00–17:00 on working days."
}
Input schema
{
  "type": "object",
  "required": [
    "start",
    "slaHours"
  ],
  "properties": {
    "start": {
      "type": "string",
      "examples": [
        "2026-03-06T15:00:00Z"
      ]
    },
    "slaHours": {
      "type": "number",
      "examples": [
        10
      ]
    },
    "workdayStart": {
      "type": "string",
      "examples": [
        "09:00"
      ]
    },
    "workdayEnd": {
      "type": "string",
      "examples": [
        "17:00"
      ]
    },
    "weekendDays": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "holidays": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}