Counting and adding working days by API

A working days API counts the business days between two dates, or finds the date N working days from a start, while skipping weekends and public holidays. You can build it yourself from a free holiday API such as Nager.Date plus numpy.busday_count or Excel's NETWORKDAYS and WORKDAY. Our Business Days Calculator API does both in one call with holidays for a country or region, custom weekends and your own extra days off, for $0.003.

Try it free Business Days API — working days with holidays, $0.003 · $0.003 / call

The two questions

Counting includes both the start and end dates, like NETWORKDAYS. Adding doesn't count the start day, like WORKDAY: adding 1 gives the next working day.

QuestionExcelAPI request
How many working days from 1 to 31 December?NETWORKDAYS(start, end, holidays){"start": "2026-12-01", "end": "2026-12-31", "country": "DE"}
Which date is 10 working days after 20 December?WORKDAY(start, 10, holidays){"start": "2026-12-20", "add": 10, "country": "US"}

Build it yourself, free

Nager.Date is free with no key and covers over 100 countries; its terms require commercial users to sponsor the project. Remember to load every year your range touches, and to filter out regional holidays unless you want them.

import numpy as np, requests

hol = [h["date"] for h in requests.get(
    "https://date.nager.at/api/v3/PublicHolidays/2026/US", timeout=10).json() if h["global"]]

# busday_count excludes the end date, so add one day to include it
print(np.busday_count("2026-12-01", "2027-01-01", holidays=hol))

The one-call version

The answer lists the holidays it skipped, so you can show users why a deadline moved. Ranges can cover up to 10 years, dates from 1975 to 2070.

curl -i -X POST https://iamai.markets/api/x402/services/S83Ls1ikgRoU \
  -H "Content-Type: application/json" \
  -d '{"start": "2026-12-20", "add": 10, "country": "US"}'

# Skips 25 Dec and 1 Jan, so it lands on 2027-01-05 (a Tuesday).
# Also: "region": "US-CA", "weekend": ["friday", "saturday"],
# "extra_holidays": ["2026-12-24"]

Limits

The product

Questions

Is a business day the same as a working day?

In everyday use, yes: a weekday that isn't a public holiday. Banks and courts sometimes define it more narrowly.

How do I handle a Friday and Saturday weekend?

Pass "weekend": ["friday", "saturday"], or any other set of days.

Can I subtract working days?

Yes. Use a negative add value, from -2,000 to 2,000.

Related

Updated 2026-12-02