Business days calculator
Count the working days between two dates, or add working days to a date, skipping weekends and holidays.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/business-days \
-H 'Content-Type: application/json' \
-d '{"input":{"start":"2026-03-02","end":"2026-03-13","holidays":["2026-03-06"]}}'
import json, urllib.request
body = {'input': {'start': '2026-03-02', 'end': '2026-03-13', 'holidays': ['2026-03-06']}}
request = urllib.request.Request("https://setget.net/v1/tools/business-days", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/business-days", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"start":"2026-03-02","end":"2026-03-13","holidays":["2026-03-06"]}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "business-days",
"input": {
"start": "2026-03-02",
"end": "2026-03-13",
"holidays": [
"2026-03-06"
]
}
}
{
"input": {
"start": "2026-03-02",
"end": "2026-03-13",
"holidays": [
"2026-03-06"
]
}
}
Endpoint: POST /v1/tools/business-days. Over MCP: run_tool with slug: "business-days".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
start |
string | yes | The start date. |
end |
string | no | The end date, to count the working days between the two. |
add |
integer | no | Working days to add to the start date instead. Negative numbers go back. From -36500 to 36500. |
weekend |
array | no | Days of the week that are not worked. Default: ["sat", "sun"]. |
holidays |
array | no | Dates that are not worked, as YYYY-MM-DD. |
inclusive |
boolean | no | When counting, include the end date as well as the start date. Default: true. |
Examples
Input
{
"start": "2026-03-02",
"end": "2026-03-13",
"holidays": [
"2026-03-06"
]
}Result
{
"mode": "count",
"start": "2026-03-02",
"end": "2026-03-13",
"working_days": 9,
"calendar_days": 12,
"weekend_days": 2,
"holidays_skipped": [
"2026-03-06"
]
}Five working days later
Input
{
"start": "2026-03-05",
"add": 5
}Result
{
"mode": "add",
"start": "2026-03-05",
"add": 5,
"result": "2026-03-12",
"weekday": "Thursday",
"calendar_days": 7,
"holidays_skipped": []
}Questions
- Are the start and end dates counted?
- Yes, both, when they are working days. This matches NETWORKDAYS in spreadsheets. Set inclusive to false to leave out the end date.
- Does it know public holidays?
- No. Holidays differ by country and region, so list the dates you want skipped.
- My weekend is Friday and Saturday. Can I change it?
- Yes. Set weekend to ["fri", "sat"], or to any other days.
Related tools
- Date difference calculatorFind the time between two dates: total days, weeks, hours, minutes and seconds, plus years, months and days.
date-diff - Add or subtract time from a dateAdd or subtract years, months, weeks, days, hours and minutes from a date and get the resulting date.
date-add - ISO week numberFind the ISO 8601 week number of a date, or the Monday to Sunday date range of a given week.
iso-week - Age calculatorWork out an exact age in years, months and days on a given date, plus the next birthday.
age-calculator - Aspect ratio calculatorSimplify a width and height to a ratio such as 16:9, and scale to a new width or height.
aspect-ratio - Calculator and expression evaluatorWork out an arithmetic expression safely: brackets, powers, functions such as sqrt and log, and variables.
math-eval