Working hours and SLA deadline calculator
The deadline a number of working hours after a start, or the working time between two moments, with office hours, weekends, public holidays and time zones.
- Version 1
- Free, no sign-up
Result: Working time from Friday 16:00 to Monday 10:30 in New York
| Working hours Working time from start to end, in hours; negative when end is before start. Unit: hours. |
2.5000 exact |
|---|---|
| Working minutes The same in minutes. Unit: minutes. |
150.0000 exact |
| Days with working time How many days had some working time in the span. |
2 |
| Tz database The time zone data used. |
tzdata 2026.6 (IANA 2026f) |
Rounding: Half even, 4 decimal places. Calculator date/working-hours@1.
How it is calculated
working time = the part of [start, end] inside day_start to day_end on working days; the deadline is the earliest moment with add_hours of working time behind itAnswers the two questions a service-level agreement asks. When is the deadline, if a ticket opened now must be answered within 8 working hours? And how much working time passed between the moment it opened and the moment it closed? Working time is the office hours you give, in the office's time zone, on days that are not a weekend day, a public holiday of the chosen calendar or one of your own closing days. Time outside office hours does not count: a ticket opened on Friday evening starts its clock on Monday morning.
- A deadline that falls exactly at closing time stays at closing time; it does not move to the next morning.
- Hours are real elapsed time. If the clocks change inside office hours, that day has an hour less or more.
- Holiday calendars cover 2020 to 2030. They follow the rules in each country's law, plus the one-off days that were proclaimed for a single year. A government can still add or move a day for a year ahead; such a change is added here when it becomes law.
- Time zones come from the IANA time zone database in the pinned tzdata package; the version used is returned with each date-time result.
References
- IANA Time Zone Database
- 5 U.S.C. 6103, as listed by the US Office of Personnel Management
- GOV.UK: UK bank holidays
- Germany: the Unification Treaty (3 October) and each state's public holiday act (Feiertagsgesetz), as summarised by the Federal Ministry of the Interior
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/date/working-hours \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"start": "2026-03-06T16:00:00",
"end": "2026-03-09T10:30:00",
"timezone": "America/New_York"
}'
The same call in Python
import os
import requests
payload = {
"start": "2026-03-06T16:00:00",
"end": "2026-03-09T10:30:00",
"timezone": "America/New_York",
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/date/working-hours",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"start": "2026-03-06T16:00:00",
"end": "2026-03-09T10:30:00",
"timezone": "America/New_York",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/date/working-hours", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_date_working_hours at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="date/working-hours" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Related calculators
- Add or subtract time from a date
- Age calculator
- Date difference calculator
- Public holidays by country and year
- Time zone converter
- Working days calculator with public holidays
Add this calculator to your website
Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.
Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.