"Five business days" sounds universal. It isn't. Which days are business days depends on the country, sometimes on the state, and the rule for what happens when a deadline lands on a day off comes from finance. Here's what to account for if your product is used in more than one place.

1. Not every weekend is Saturday and Sunday

In Saudi Arabia, among other countries, the weekend is Friday and Saturday — Sunday is a working day. Hard-coding "skip Saturday and Sunday" silently breaks for those users.

With duedates, the weekend is configuration. Weekdays use ISO numbers, 1 = Monday … 7 = Sunday:

import { createCalendar } from '@contalert/duedates'; const fridaySaturday = createCalendar({ weekend: [5, 6] }); fridaySaturday.isBusinessDay('2026-11-06'); // false — Friday fridaySaturday.isBusinessDay('2026-11-08'); // true — Sunday fridaySaturday.addBusinessDays('2026-11-05', 1); // '2026-11-08' — Thursday + 1 = Sunday createCalendar().addBusinessDays('2026-11-05', 1); // '2026-11-06' — Thursday + 1 = Friday 

2. Holidays are regional, and they change

Holidays differ between countries, between states of the same country, and from year to year. January 6 (Epiphany) is a public holiday in Bavaria, Germany — and a normal working day in the United States.

That's why duedates deliberately doesn't ship holiday data. You pass a list, or a function — which means you can plug in any holiday library. Here's date-holidays, which covers hundreds of countries and regions:

import Holidays from 'date-holidays'; import { createCalendar } from '@contalert/duedates'; function calendarFor(...region: string[]) { const holidays = new Holidays(...region); return createCalendar({ holidays: (date) => { const found = holidays.isHoliday(new Date(`${date}T12:00:00`)); return Array.isArray(found) && found.some((holiday) => holiday.type === 'public'); }, }); } const us = calendarFor('US'); const bavaria = calendarFor('DE', 'BY'); us.isHoliday('2026-11-26'); // true — Thanksgiving us.addBusinessDays('2026-11-25', 1); // '2026-11-27' bavaria.isHoliday('2027-01-06'); // true — Epiphany us.isHoliday('2027-01-06'); // false 

Two details in that adapter matter:

  • T12:00:00 builds the Date at noon, so no time zone conversion can push it into the previous or next day.
  • Filter by holiday type. Libraries often include observances (like Valentine's Day) that aren't days off.

3. When the deadline lands on a day off

Your contract says "due on the last day of the month". January 31, 2027 is a Sunday. Now what?

Finance has standard names for the options — they're called business day conventions:

Convention Rule
Following Move to the next business day.
Preceding Move to the previous business day.
Modified following Move forward, unless that crosses into the next month — then move back.
Modified preceding Move back, unless that crosses into the previous month — then move forward.

"Following" turns January 31 into February 1 — a different month, which can mean a different billing cycle, tax period or accounting close. "Modified following" keeps it in January:

const calendar = createCalendar(); calendar.adjust('2027-01-31', 'following'); // '2027-02-01' calendar.adjust('2027-01-31', 'modifiedFollowing'); // '2027-01-29' 

For recurring deadlines, the convention goes on the rule:

import { occurrences } from '@contalert/duedates'; occurrences( { type: 'dayOfMonth', day: 'last', adjust: 'modifiedFollowing' }, { from: '2027-01-01', count: 1, calendar }, ); // [{ nominal: '2027-01-31', due: '2027-01-29' }] 

4. "The nth business day" depends on all of the above

Payroll and tax rules often say "the 5th business day of the month". With US holidays, January 2027 starts with New Year's Day on a Friday and a weekend:

occurrences({ type: 'businessDayOfMonth', n: 5 }, { from: '2027-01-01', count: 1, calendar: us }); // [{ nominal: '2027-01-08', due: '2027-01-08' }] 

Change the calendar and the same rule gives a different date — which is exactly why the calendar should be data, not code.

Checklist for international deadlines

  • Make the weekend configurable per country.
  • Load holidays per region, and keep them up to date.
  • Pick a business day convention explicitly — and write it in the contract.
  • Store which calendar a deadline was computed with, so it can be recomputed if holidays change.
npm install @contalert/duedates 

Next week, the last part of the series: building reminder schedules that never fire on a Sunday.