ThirdMomentQuantX

Chapter 2

Holiday calendars and business days

Contents
  1. 2.1 Notation
  2. 2.2 Weekends
  3. 2.3 Holiday calendars and business days
  4. 2.4 Joint calendars
  5. 2.5 Business-day conventions
  6. 2.6 Business-day arithmetic
  7. 2.7 Worked examples
  8. 2.8 Rule-based calendars and confirmed dates
  9. 2.9 The U.S. government securities calendar
  10. 2.10 The New York Fed calendar
  11. 2.11 The Hijri calendar
  12. 2.12 The Riyadh calendar
  13. 2.13 The TARGET calendar
  14. 2.14 The London calendar
  15. 2.15 The Tokyo calendar
  16. References

Payments, fixings and settlements happen on business days. This chapter defines exactly when a date is a business day in a given market, how a date that is not a business day is moved to one (the business-day conventions), and how business days are added and counted. The names and meanings of the conventions follow the 2006 ISDA Definitions (International Swaps and Derivatives Association, 2006) and, where they add to or supersede them, the 2021 ISDA Interest Rate Derivatives Definitions (International Swaps and Derivatives Association, 2021).

It also defines how holidays are computed from rules and corrected by dates confirmed by an official source (Section 2.8), and the first real calendar, the U.S. government securities calendar USGovernmentSecurities (Section 2.9). The Riyadh calendar (Section 2.12) follows the same pattern; its religious holidays are placed with the Islamic (Hijri) calendar of Section 2.11. So do the calendars of the euro, sterling and yen: TARGET (Section 2.13), London (Section 2.14) and Tokyo (Section 2.15).

2.1 Notation

Symbol Meaning
\(d\), \(u\) Dates, as in Section 1.2; \(d + k\) and \(d_2 - d_1\) as in Equation (1.3)
\(\mathrm{dow}(d)\) Day of the week of \(d\) (Monday to Sunday)
\(E_1 < E_2 < \dots < E_r\) Start dates of the weekend regimes of a calendar
\(W_1, \dots, W_r\) Weekend-day sets of those regimes: subsets of the seven days of the week
\(W(d)\) Weekend days in force on date \(d\)
\(H\) Set of holidays of a calendar
\([c_s, c_e]\) Coverage range: first and last date the calendar covers
\(b(d)\) Business-day indicator: 1 if \(d\) is a business day, 0 otherwise
\(B(d)\) Number of business days from \(c_s\) (included) to \(d\) (excluded)
\(F(d)\), \(P(d)\) First business day on or after \(d\); last business day on or before \(d\)
\(A_n(d)\) The \(n\)-th business day after \(d\) (\(n > 0\)) or before \(d\) (\(n < 0\))
\(N(d_1, d_2)\) Number of business days from \(d_1\) (included) to \(d_2\) (excluded)
\(\mathrm{ym}(d)\) The calendar month of \(d\): the pair (year, month)
\(R\) Set of rule holidays of a rule-based calendar
\(H^{+}\), \(H^{-}\) Confirmed corrections: dates added as holidays, and rule holidays removed
\([k_s, k_e]\) Confirmed range: first and last date the official source covers
\(\mathrm{Easter}(y)\) Easter Sunday of year \(y\) in the Gregorian calendar
\(\lfloor x \rfloor\), \(a \bmod b\) Integer part of \(x \ge 0\); remainder of \(a\) divided by \(b\)
\((y, m, j)_H\) Day \(j\) of month \(m\) of year \(y\) of the Hijri calendar (AH)
\(G(y, m, j)\) The Gregorian date of \((y, m, j)_H\)
\(T(y, m, j)\) Number of days from 1 Muharram 1 AH to \((y, m, j)_H\) in the tabular Islamic calendar
\(\mathrm{leap}(y)\) Whether Hijri year \(y\) has 355 days in the tabular calendar
\(S_n(u)\) The first \(n\) dates on or after \(u\) that are not weekend days

2.2 Weekends

A weekend day is a day of the week on which the market is closed every week. Which days these are depends on the country and, importantly, can change over time:

  • Saudi Arabia: Thursday and Friday until 2013-06-28; Friday and Saturday from 2013-06-29.
  • United Arab Emirates: Friday and Saturday until 2021-12-31; Saturday and Sunday from 2022-01-01.
  • United States and most other markets: Saturday and Sunday.

A calendar therefore holds a list of weekend regimes \((E_1, W_1), \dots, (E_r, W_r)\) with \(E_1 < E_2 < \dots < E_r\) and \(E_1 \le c_s\). Regime \(k\) applies from its start date \(E_k\) until the day before \(E_{k+1}\) (the last regime applies to the end of the coverage range):

\[W(d) = W_k \quad \text{for the } k \text{ with } E_k \le d < E_{k+1} \qquad (E_{r+1} = +\infty).\]

A weekend set may be empty (a market open every day of the week), but it may not contain all seven days.

2.3 Holiday calendars and business days

A holiday is a date on which the market is closed although it is not a weekend day, such as a national day or Eid. A holiday calendar consists of weekend regimes, a set of holidays \(H\), and a coverage range \([c_s, c_e]\): the dates for which the calendar's holiday list is known to be complete. Holidays outside the coverage range are not allowed, and a holiday may also fall on a weekend day (it then changes nothing).

A date \(d\) in the coverage range is a business day when it is neither a weekend day nor a holiday:

\[b(d) = \begin{cases} 1 & \text{if } \mathrm{dow}(d) \notin W(d) \text{ and } d \notin H, \\ 0 & \text{otherwise}, \end{cases} \qquad c_s \le d \le c_e .\]
(2.1)

This matches the 2006 ISDA Definitions, Section 1.4, where a Business Day is a day on which commercial banks and foreign-exchange markets settle payments and are open for general business in the places specified; a calendar represents one such place.

No guessing outside the coverage range. For a date outside \([c_s, c_e]\) the calendar does not know the holidays, so \(b(d)\) is undefined there. Every operation in this chapter that would need \(b(d)\) for such a date is an error; it never silently treats the date as a business day. A rule-based calendar (Section 2.8) covers every supported date, so for it this case never arises.

Cumulative count. For \(c_s \le d \le c_e + 1\), let

\[B(d) = \sum_{u = c_s}^{d - 1} b(u),\]
(2.2)

the number of business days from \(c_s\) (included) to \(d\) (excluded), with \(B(c_s) = 0\). \(B\) never decreases, and \(b(d) = B(d + 1) - B(d)\). The library computes \(B\) once, when the calendar is built; every operation below is then a lookup or a binary search in \(B\).

2.4 Joint calendars

A trade often requires a day to be a business day in several places at once, for example in Riyadh and in New York for a riyal–dollar cross-currency swap. ISDA expresses this as a Business Day "in each of" the places specified (International Swaps and Derivatives Association, 2006, Section 1.4). The joint calendar of calendars \(1, \dots, m\) has the coverage range

\[[c_s, c_e] = \Big[\max_j c_s^{(j)},\ \min_j c_e^{(j)}\Big],\]

which must not be empty, and the business-day indicator

\[b(d) = \prod_{j=1}^{m} b_j(d),\]
(2.3)

so a date is a joint business day exactly when it is a business day in every component. The identifier of a joint calendar lists the identifiers of its components in alphabetical (ordinal) order, without repetitions, separated by +, for example Riyadh+USGovernmentSecurities. Joining a joint calendar with further calendars gives the same result as joining all their components at once.

Names. A calendar is identified by its ISDA business centre name (London, Tokyo, TARGET, NewYork, NewYorkFed, Riyadh), since a calendar is the business days of a centre rather than of a country. Text from a user or a stored document may also name a calendar by country (England, Japan, SaudiArabia), by FpML business centre code (GBLO, JPTO, EUTA, USNY, SARI) or by two-letter vendor code (GB, JN, TE, FD, GT), in any case; each alias is read as the ISDA name, which is what the library stores and shows. England+FD, for example, is read as London+NewYorkFed.

Weekday calendars. Some loans and derivatives treat a further day of the week as a non-business day. The weekday calendar of a day \(w\) has the single weekend regime \((1900\text{-}01\text{-}01, \{w\})\), no holidays, and covers every supported date; its identifier is the day's English name, for example Friday. Joining it with a market calendar adds \(w\) to that market's non-business days: Friday+USGovernmentSecurities closes every Friday as well as every U.S. government securities holiday and weekend. A market calendar keeps its own weekend regimes, because a market's weekend can change over time (Section 2.2) and a fixed weekday calendar cannot express that.

2.5 Business-day conventions

A business-day convention says how a date that is not a business day is moved to a business day. A date that is already a business day is never moved. With

\[F(d) = \min\{u \ge d : b(u) = 1\}, \qquad P(d) = \max\{u \le d : b(u) = 1\},\]

the five conventions are:

\[\begin{aligned} \text{Unadjusted:} \quad & d, \\ \text{Following:} \quad & F(d), \\ \text{Modified Following:} \quad & F(d) \text{ if } \mathrm{ym}(F(d)) = \mathrm{ym}(d), \text{ else } P(d), \\ \text{Preceding:} \quad & P(d), \\ \text{Modified Preceding:} \quad & P(d) \text{ if } \mathrm{ym}(P(d)) = \mathrm{ym}(d), \text{ else } F(d). \end{aligned}\]
(2.4)

In words:

  • Unadjusted leaves the date as it is, even on a holiday. The 2021 ISDA Definitions call this "No Adjustment" (Section 2.3.5). It never consults the calendar, so it is defined for every date.
  • Following takes the first following business day (2006 ISDA Definitions, Section 4.12).
  • Modified Following (ISDA also accepts "Modified") takes the first following business day, unless that day is in the next calendar month; it then takes the first preceding business day instead (Section 4.12). This keeps month-end payment dates within their month.
  • Preceding takes the first preceding business day (Section 4.12).
  • Modified Preceding takes the first preceding business day, unless that day is in the previous calendar month; it then takes the first following business day. This is market practice (used, for example, by some bond markets), not an ISDA convention.

Edge cases.

  • If the result, \(F(d)\) or \(P(d)\), lies outside the coverage range, the adjustment is an error (Section 2.3).
  • Modified Following needs \(F(d)\) only to test its month. When every remaining day of \(d\)'s month is covered and none is a business day, \(F(d)\) is in the next month whether or not it is covered, so the adjustment is \(P(d)\) without an error. When the month end is not covered and no covered day of the month is a business day, the answer depends on unknown dates and the adjustment is an error. Modified Preceding mirrors this with \(P(d)\) and the start of the month.
  • The ISDA FRN Convention (also called the Eurodollar Convention) is not a rule for moving one date. It ties each date of a schedule to the previous one and to month ends, so it is defined with schedules in a later chapter, together with the end-of-month rule.
  • Unscheduled holidays (a holiday announced after a trade is agreed; 2021 ISDA Definitions, Section 2.3.6) are not handled yet.

2.6 Business-day arithmetic

Adding business days. For a date \(d\) in the coverage range and an integer \(n\), the \(n\)-th business day after \(d\) (\(n > 0\)), or before \(d\) (\(n < 0\)), is

\[A_n(d) = \begin{cases} \min\{u > d : N(d + 1, u + 1) = n\} & n > 0, \\ d & n = 0, \\ \max\{u < d : N(u, d) = -n\} & n < 0, \end{cases}\]
(2.5)

with \(N\) as in Equation (2.7) below. The date \(d\) itself is never counted and need not be a business day; the result is always a business day when \(n \neq 0\). For \(n = 0\) the date is returned unchanged; to move it to a business day, apply a convention. A result outside the coverage range is an error. This is how settlement lags are applied: "spot is two business days after the trade date" is \(A_2(d)\).

Next and previous business day are the special cases

\[\mathrm{next}(d) = A_1(d), \qquad \mathrm{previous}(d) = A_{-1}(d),\]
(2.6)

the first business day strictly after, and the last business day strictly before, \(d\). They differ from \(F(d)\) and \(P(d)\), which return \(d\) itself when \(d\) is a business day.

Counting business days. The number of business days from \(d_1\) (included) to \(d_2\) (excluded) is

\[N(d_1, d_2) = B(d_2) - B(d_1),\]
(2.7)

which is negative, with the same magnitude, when \(d_2 < d_1\). Both dates must be in the coverage range. The convention "start included, end excluded" is the one the Bus/252 day count needs (defined in the day-count chapter); it also gives \(N(d_1, d_3) = N(d_1, d_2) + N(d_2, d_3)\) for any three dates.

2.7 Worked examples

The examples use two synthetic calendars, invented for illustration:

  • EXA: weekend Saturday and Sunday; holidays 2026-12-25 (Friday) and 2027-01-01 (Friday); coverage 2026-01-01 to 2027-12-31.
  • KSX: weekend Thursday and Friday from 2013-01-01, Friday and Saturday from 2013-06-29 (the Saudi change); no holidays; coverage 2013-01-01 to 2014-12-31.
Calendar Date Convention or operation Result Reference
EXA 2026-10-31 (Sat) Unadjusted 2026-10-31 Equation (2.4)
EXA 2026-10-31 (Sat) Following 2026-11-02 (Mon) Equation (2.4)
EXA 2026-10-31 (Sat) Modified Following 2026-10-30 (Fri) Equation (2.4)
EXA 2026-10-31 (Sat) Preceding, Modified Preceding 2026-10-30 (Fri) Equation (2.4)
EXA 2026-11-01 (Sun) Following, Modified Following 2026-11-02 (Mon) Equation (2.4)
EXA 2026-11-01 (Sun) Preceding 2026-10-30 (Fri) Equation (2.4)
EXA 2026-11-01 (Sun) Modified Preceding 2026-11-02 (Mon) Equation (2.4)
EXA 2026-12-25 (holiday) Following; Preceding 2026-12-28; 2026-12-24 Equation (2.4)
EXA 2027-01-01 (holiday) Preceding; Modified Preceding 2026-12-31; 2027-01-04 Equation (2.4)
EXA 2026-12-24 (Thu) \(A_2\) 2026-12-29 (Tue) Equation (2.5)
EXA 2026-12-28 (Mon) \(A_{-1}\) 2026-12-24 (Thu) Equation (2.5)
EXA 2026-12-31 (Thu) next 2027-01-04 (Mon) Equation (2.6)
EXA 2026-12-21 to 2027-01-04 \(N\) 8 Equation (2.7)
KSX 2013-06-26 (Wed) next 2013-06-30 (Sun) Equation (2.6)
KSX 2013-06-26 to 2013-07-01 \(N\) 2 Equation (2.7)

Modified Following at a month end. 2026-10-31 is a Saturday. The first following business day is Monday 2026-11-02, which is in November, not October, so Modified Following takes the first preceding business day instead: Friday 2026-10-30.

Counting across Christmas. From Monday 2026-12-21 (included) to Monday 2027-01-04 (excluded) there are 14 days. Four are weekend days (26, 27 December and 2, 3 January) and two are holidays (25 December and 1 January), leaving \(14 - 4 - 2 = 8\) business days: 21 to 24 and 28 to 31 December.

The Saudi weekend change. In KSX, Thursday 2013-06-27 is a weekend day (old regime), Friday 2013-06-28 is a weekend day under both regimes, and Saturday 2013-06-29 is a weekend day under the new regime. The first business day after Wednesday 2013-06-26 is therefore Sunday 2013-06-30, and from 2013-06-26 to 2013-07-01 there are two business days (26 and 30 June). A calendar with a single fixed weekend would get one of these two weeks wrong.

2.8 Rule-based calendars and confirmed dates

Official sources announce holidays only a year or two ahead, but a long-dated trade needs business days decades ahead. A rule-based calendar therefore computes its holidays from rules (for example "the fourth Thursday of November") for every year, and corrects them with dates confirmed by the official source over a confirmed range \([k_s, k_e]\):

\[H = \big(R \setminus H^{-}\big) \cup H^{+}, \qquad H^{+} \cap R = \varnothing, \quad H^{-} \subseteq R, \quad H^{+} \cup H^{-} \subseteq [k_s, k_e].\]
(2.8)

In words: start from the rule holidays \(R\), remove the rule holidays on which the source says the market was open (\(H^{-}\)), and add the one-off closes the rules cannot know (\(H^{+}\), for example a national day of mourning). Added dates must not be weekend days or rule holidays, and removed dates must be rule holidays; a correction that breaks these conditions is rejected when the calendar is built, because it shows that the rules or the corrections are wrong.

  • Coverage. A rule-based calendar covers every supported date, \([c_s, c_e] = [1900\text{-}01\text{-}01, 2199\text{-}12\text{-}31]\) (Section 1.2), so no date in that range is ever an error.
  • Projected holidays. After \(k_e\), \(H\) is the rule holidays alone: a forecast, not a fact. The calendar states \(k_e\) (its confirmed-through date) so that results that depend on projected holidays can be identified. A calendar with no confirmed dates has no confirmed-through date, and a confirmed-through date always lies within the coverage range. A joint calendar's confirmed-through date is the earliest of its components', and it has none if any component has none or is confirmed only before the joint coverage range begins, since such a component confirms nothing in that range.
  • File format. The corrections of one calendar are a JSON document with the calendar identifier, a description, the source and the date it was read, \(k_s\) and \(k_e\), and the lists add (\(H^{+}\)) and remove (\(H^{-}\)), each entry a date with its reason. Any other property is an error.

2.9 The U.S. government securities calendar

A date is a U.S. Government Securities Business Day (2006 ISDA Definitions, Section 1.11) unless it is a Saturday, a Sunday, or a day on which SIFMA (the Securities Industry and Financial Markets Association) recommends that its members' fixed-income departments close for the whole day for trading in U.S. government securities. SOFR is published on these days. The library's calendar USGovernmentSecurities is the SOFR publication calendar: the U.S. Government Securities Business Days less the rare days on which SIFMA recommends only an early close but the New York Fed publishes no SOFR (Good Fridays 2021, 2023 and 2026), so that the calendar matches the SOFR fixings. On those days it differs from the ISDA definition. Nothing in the library settles on this calendar; a SIFMA settlement calendar will be added separately when a product settles on it (Treasury bills and bonds, repos, SOFR floating rate notes). SIFMA's early closes (for example 2 p.m.) do not change settlement, so they are business days. The calendar's identifier is USGovernmentSecurities. ISDA defines other U.S. calendars that the library will add separately: New York banking days (Sections 1.3 and 1.5), New York Fed Business Days (Section 1.9, Section 2.10) and NYSE Business Days (Section 1.10).

Rules. For each year \(y\) the rule holidays \(R\) are:

Holiday Nominal date Years Saturday moves to Friday
New Year's Day 1 January all no
Martin Luther King Jr. Day third Monday of January from 1986 (always Monday)
Washington's Birthday third Monday of February all (always Monday)
Good Friday \(\mathrm{Easter}(y) - 2\), Equation (2.10) all (always Friday)
Memorial Day last Monday of May all (always Monday)
Juneteenth 19 June from 2022 yes
Independence Day 4 July all yes
Labor Day first Monday of September all (always Monday)
Columbus Day second Monday of October all (always Monday)
Veterans Day 11 November; fourth Monday of October 1971 to 1977 all no
Thanksgiving Day fourth Thursday of November all (always Thursday)
Christmas Day 25 December all yes

The dates are the U.S. federal holidays as fixed by the Uniform Monday Holiday Act (in force from 1971), plus Good Friday. Before 1971 the same rules are applied as an approximation; no product in scope needs those years. The first year of the Martin Luther King Jr. Day close (1986, the first federal observance) has not been checked against bond-market records.

Weekend observance. A holiday whose nominal date \(u\) falls on a weekend is observed on the nearest weekday, except where SIFMA does not move it:

\[\mathrm{obs}(u) = \begin{cases} u + 1 & \text{if } \mathrm{dow}(u) = \text{Sunday}, \\ u - 1 & \text{if } \mathrm{dow}(u) = \text{Saturday and the holiday moves to Friday}, \\ \text{none} & \text{if } \mathrm{dow}(u) = \text{Saturday and it does not}, \\ u & \text{otherwise}. \end{cases}\]
(2.9)

New Year's Day on a Saturday is not moved to Friday 31 December (SIFMA recommends only an early close that day), and Veterans Day on a Saturday is not moved either (the Federal Reserve stays open on the Friday).

Easter. Good Friday is two days before Easter Sunday. For a year \(y\), with all divisions integer divisions (\(\lfloor \cdot \rfloor\)) and remainders (\(\bmod\)), the anonymous Gregorian algorithm (Meeus, Jones, Butcher) gives

\[\begin{aligned} a &= y \bmod 19, \quad b = \lfloor y / 100 \rfloor, \quad c = y \bmod 100, \quad d = \lfloor b / 4 \rfloor, \quad e = b \bmod 4, \\ f &= \lfloor (b + 8) / 25 \rfloor, \quad g = \lfloor (b - f + 1) / 3 \rfloor, \quad h = (19a + b - d - g + 15) \bmod 30, \\ i &= \lfloor c / 4 \rfloor, \quad k = c \bmod 4, \quad l = (32 + 2e + 2i - h - k) \bmod 7, \quad m = \lfloor (a + 11h + 22l) / 451 \rfloor, \\ \mathrm{Easter}(y) &= \text{day } \big((h + l - 7m + 114) \bmod 31\big) + 1 \text{ of month } \lfloor (h + l - 7m + 114) / 31 \rfloor . \end{aligned}\]
(2.10)

In words: \(a\) places the year in the 19-year lunar cycle, \(b\) to \(g\) apply the Gregorian century corrections, \(h\) locates the ecclesiastical full moon, and \(l\) moves to the following Sunday; the month is 3 (March) or 4 (April). The result is always a Sunday between 22 March and 25 April. Easter Sunday is never a holiday in itself (it is a Sunday).

Confirmed dates. The library ships the SIFMA corrections from 2000-01-01 to 2027-12-31. They add one-off closes (11 and 12 September 2001; 11 June 2004, the day of mourning for President Reagan; 30 October 2012, Hurricane Sandy; 5 December 2018, the day of mourning for President George H. W. Bush) and remove Good Fridays on which SIFMA recommended only an early close because the monthly employment report was published that morning (2007, 2010, 2012 and 2015, all before SOFR was first published on 3 April 2018). Good Fridays 2021, 2023 and 2026 were also early closes, but they stay holidays because the New York Fed published no SOFR on them: for 2026 it announced on 12 March 2026 that cleared Treasury repo would not settle, and the published history shows no fixing on any of the three. The years 2000 to 2019 were checked on 2026-10-11 against SIFMA's US Historical Holiday Market Recommendations (1996 to 2019): every full close matches. That document does not show the closes of September 2001 and June 2004, which the Bond Market Association (SIFMA's predecessor) announced at the time, nor SIFMA's later change of Good Friday 2015 from a full close to an early close; those four dates were confirmed separately. The years 2026 and 2027 were checked against SIFMA's current holiday schedule: every full close matches. The years 2020 to 2025 were compiled from SIFMA press releases and press coverage and checked against SIFMA.

Known limits. A future Good Friday on the morning of an employment report is likely to be an early close with no SOFR, which the rule holiday already gives; but the New York Fed could one day publish SOFR on such a day, and one-off closes cannot be foreseen. Until SIFMA confirms a year, the calendar can therefore count a holiday too many or too few.

Worked example. The rule holidays of 2027 are:

Holiday Nominal Observed (holiday)
New Year's Day Fri 2027-01-01 2027-01-01
Martin Luther King Jr. Day Mon 2027-01-18
Washington's Birthday Mon 2027-02-15
Good Friday Easter Sun 2027-03-28 Fri 2027-03-26
Memorial Day Mon 2027-05-31
Juneteenth Sat 2027-06-19 Fri 2027-06-18
Independence Day Sun 2027-07-04 Mon 2027-07-05
Labor Day Mon 2027-09-06
Columbus Day Mon 2027-10-11
Veterans Day Thu 2027-11-11 2027-11-11
Thanksgiving Day Thu 2027-11-25
Christmas Day Sat 2027-12-25 Fri 2027-12-24

For Easter 2027 with \(y = 2027\): \(a = 13\), \(b = 20\), \(c = 27\), \(d = 5\), \(e = 0\), \(f = 1\), \(g = 6\), \(h = (247 + 20 - 5 - 6 + 15) \bmod 30 = 1\), \(i = 6\), \(k = 3\), \(l = (32 + 0 + 12 - 1 - 3) \bmod 7 = 5\), \(m = \lfloor 134 / 451 \rfloor = 0\), and \(h + l - 7m + 114 = 120\): month \(\lfloor 120 / 31 \rfloor = 3\), day \((120 \bmod 31) + 1 = 28\), so Easter is Sunday 28 March 2027 and Good Friday is 26 March 2027.

In 2015 the corrections apply: Good Friday, 3 April 2015, is a rule holiday but is removed (\(H^{-}\)), because SIFMA recommended an early close for the employment report; it is a U.S. Government Securities Business Day. Good Friday 2023 (7 April) was also an early close but is not removed, as the New York Fed published no SOFR that day, so it stays a holiday. Far beyond the confirmed range, Christmas Day 2100 is a Saturday, so Friday 2100-12-24 is a projected holiday, and Modified Following moves Saturday 2100-12-25 to Monday 2100-12-27.

2.10 The New York Fed calendar

A date is a New York Fed Business Day (2006 ISDA Definitions, Section 1.9; narrowed in the 2021 Definitions, Section 2.1.6, to the days the Fedwire Securities and Funds Services are open) unless it is a Saturday, a Sunday or a Federal Reserve holiday. Market practice uses this calendar for the accrual and payment dates of USD SOFR OIS, while SOFR itself fixes on the U.S. government securities calendar (Section 2.9). The calendar's identifier is NewYorkFed.

Rules. The rule holidays are those of Section 2.9 without Good Friday, with the same first years (Martin Luther King Jr. Day from 1986, Juneteenth from 2022) and the same Veterans Day rule for 1971 to 1977. Only the weekend observance differs: a Saturday holiday is never moved, because the Federal Reserve is open on the Friday before it.

\[\mathrm{obs}_{\mathrm{Fed}}(u) = \begin{cases} u + 1 & \text{if } \mathrm{dow}(u) = \text{Sunday}, \\ \text{none} & \text{if } \mathrm{dow}(u) = \text{Saturday}, \\ u & \text{otherwise}. \end{cases}\]
(2.11)

No confirmed dates are shipped yet, so the calendar comes from the rules alone.

Example. In 2026, Independence Day falls on Saturday 4 July: the Federal Reserve is open on Friday 3 July, SIFMA closes. Good Friday, 14 April 2028, is a Federal Reserve business day but a SIFMA holiday.

New York. A date is a New York business day (the 2006 ISDA Definitions' business day of the business centre New York, Sections 1.4 and 1.6) unless commercial banks in New York City are closed. They close on the Federal Reserve holidays, so the calendar NewYork has exactly the holidays of NewYorkFed, under its own identifier: the Definitions name the two business centres separately, and the FX spot dates of USD pairs use New York (Section 8.8). If the two ever differ, the confirmed dates of one of them record it.

2.11 The Hijri calendar

The Islamic religious holidays fall on fixed days of the Hijri (Islamic, lunar) calendar: twelve months of 29 or 30 days, about 354 days a year, so each holiday comes about 11 days earlier every Gregorian year. The months used here are Ramadan (month 9), Shawwal (month 10) and Dhu al-Hijjah (month 12). The library only needs the Gregorian date \(G(y, m, j)\) of a Hijri date \((y, m, j)_H\); every date it exposes is Gregorian.

Umm al-Qura. Saudi Arabia's official calendar is the Umm al-Qura calendar (ummalqura, ), computed in advance from astronomical rules and published in tables. For Hijri years 1318 to 1500 (30 April 1900 to 16 November 2077), \(G\) is read from the Umm al-Qura tables built into .NET (UmAlQuraCalendar, part of the .NET base library). Its dates match SAMA's Hijri-dated holiday schedule for 2026 to 2029 and the announced Eids of 2023 to 2026.

Tabular calendar. Outside those years, \(G\) comes from the tabular Islamic calendar, a purely arithmetic calendar: odd months have 30 days, even months 29, and Dhu al-Hijjah has 30 days in leap years, of which there are 11 in every 30-year cycle:

\[\mathrm{leap}(y) \iff (14 + 11y) \bmod 30 < 11,\]
(2.12)

that is years 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29 of each cycle. Counting days from 1 Muharram 1 AH (Friday 16 July 622 in the Julian calendar, which is 19 July 622 in the proleptic Gregorian calendar),

\[T(y, m, j) = 354\,(y - 1) + \left\lfloor \frac{11y + 3}{30} \right\rfloor + 29\,(m - 1) + \left\lfloor \frac{m}{2} \right\rfloor + (j - 1), \qquad G(y, m, j) = \text{19 July 622} + T(y, m, j).\]
(2.13)

In words: 354 days for each earlier year plus one for each earlier leap year, then 29 days for each earlier month plus one for each earlier odd month, then the days of the month. Over 1318 to 1500 the tabular calendar stays within two days of Umm al-Qura, and it continues it without a gap: 1 Muharram 1501 is 17 November 2077, the day after the last Umm al-Qura date. The lower join overlaps by one day: tabular 29 Dhu al-Hijjah 1317 and Umm al-Qura 1 Muharram 1318 are both 30 April 1900. Only January to April 1900 (Eid al-Fitr 1317) is affected, and no Eid falls on that day.

Moon sighting. In Saudi Arabia the Eids are declared from the sighting of the new moon, which can differ by a day from Umm al-Qura. The holiday rules use Umm al-Qura; the confirmed dates (Section 2.8) correct the years in which the declared Eid differed.

Worked example. 28 Ramadan 1447 in the tabular calendar: \(354 \times 1446 = 511{,}884\), \(\lfloor (11 \times 1447 + 3)/30 \rfloor = \lfloor 15{,}920 / 30 \rfloor = 530\), \(29 \times 8 + \lfloor 9/2 \rfloor = 236\), and \(j - 1 = 27\), so \(T = 512{,}677\) days after 19 July 622: Tuesday 17 March 2026. Umm al-Qura gives the same date, which SAMA quotes as "Tuesday (28/09/1447H) ... (17/03/2026)".

2.12 The Riyadh calendar

A date is a Riyadh business day (the 2006 ISDA Definitions' business day of the financial centre of the Saudi riyal, Section 1.5) unless it is a weekend day or a day on which banks supervised by the Saudi Central Bank (SAMA) are closed. The calendar's identifier is Riyadh. SAMA publishes a separate, shorter holiday list for the SARIE payment system, which is not this calendar.

Weekends. Thursday and Friday until 28 June 2013; Friday and Saturday from 29 June 2013 (Royal Order A/185 of 23 June 2013, which applies to SAMA and the financial institutions). The calendar has these two weekend regimes (Section 2.2); the first is used back to 1900 as an approximation.

Eid holidays. SAMA sets the bank closures (Saudi Central Bank (SAMA), 2025) of the two Eids by circular each year; there is no written rule. The rules model its practice since about 2018: each closure is five business days, starting on a fixed Hijri date,

\[\text{Eid al-Fitr} = S_5\big(G(y, 9, 28)\big), \qquad \text{Eid al-Adha} = S_5\big(G(y, 12, 8)\big),\]
(2.14)

where \(S_n(u)\) is the first \(n\) dates on or after \(u\) that are not weekend days (only weekends are skipped, not other holidays). In words: the Eid al-Fitr closure covers the last days of Ramadan and the first days of Shawwal, and the Eid al-Adha closure the day before Arafat, Arafat (9 Dhu al-Hijjah) and the days of the Eid. Each holiday belongs to the Gregorian year of its own date, so a closure that starts in December gives some holidays to January.

National Day and Founding Day. National Day is 23 September from 2005, and Founding Day 22 February from 2022. From 29 June 2013 a holiday on a weekend day moves:

\[\mathrm{obs}_{\mathrm{SA}}(u) = \begin{cases} u - 1 \text{ (Thursday)} & \text{if } \mathrm{dow}(u) = \text{Friday}, \\ u + 1 \text{ (Sunday)} & \text{if } \mathrm{dow}(u) = \text{Saturday}, \\ u & \text{otherwise}. \end{cases}\]
(2.15)

Before 29 June 2013 a National Day on the Thursday or Friday weekend is not moved. The rule is in SAMA's 2015 rulebook for finance companies and in its 2026 to 2029 schedule; when it was introduced is not known, so it is applied from the new weekend.

Confirmed dates. The library ships the SAMA corrections from 2018-01-01 to 2029-12-31, compiled on 2026-10-14 from SAMA's circulars and its 2026 to 2029 schedule as published by SAMA and reported by the press; each date is marked verified (SAMA quoted, or two independent sources agree) or inferred (one source, or the rule where no notice was found) in the test reference list. Every date was checked against SAMA on 2026-10-14; all match. Over those twelve years the rules give 120 Eid holidays; the corrections add 9 dates (the holiday after the World Cup win of 22 November 2022, closures extended or started a day earlier) and remove 10 (rule Eid days on which banks were open). Before 2018 the rules apply alone: SAMA's closures of 2013 to 2017 were not all found.

Known limits. SAMA can lengthen or shift an Eid closure, and the declared Eid can differ from Umm al-Qura, so until SAMA confirms a year the calendar can be a day or two off around each Eid. One-off holidays cannot be foreseen.

Worked example. The rule holidays of 2027:

Holiday Anchor Holidays
Founding Day Mon 22 Feb 22 Feb
Eid al-Fitr 28 Ramadan 1448 = Sun 7 Mar Sun 7 to Thu 11 Mar
Eid al-Adha 8 Dhu al-Hijjah 1448 = Fri 14 May (weekend) Sun 16 to Thu 20 May
National Day Thu 23 Sep 23 Sep

They match SAMA's schedule for 2027 exactly. In 2028 they do not: 28 Ramadan 1449 is Thursday 24 February, so the rule closes Thursday 24 and Sunday 27 February to Wednesday 1 March, but SAMA closes banks from Sunday 27 February to Thursday 2 March; the confirmed dates remove 24 February and add 2 March. National Day 2028 falls on a Saturday and is observed on Sunday 24 September.

2.13 The TARGET calendar

A date is a TARGET Settlement Day (2006 ISDA Definitions, Section 1.8) unless it is a Saturday, a Sunday or a closing day of TARGET, the Eurosystem's real-time gross settlement system for euro payments (TARGET2 until March 2023, then T2). The calendar's identifier is TARGET. It is the calendar of euro payments, €STR and EURIBOR.

Rules. The closing days are fixed by the ECB:

Closing day Years
New Year's Day (1 January), Christmas Day (25 December) every year
Good Friday, Easter Monday, Labour Day (1 May), 26 December from 2000

Easter Sunday is computed with Equation (2.10). A closing day on a weekend is not moved. TARGET opened on 4 January 1999; before that the rules are applied as an approximation.

Confirmed dates. The library ships the closing days from 1999-01-01 to 2027-12-31: the rules plus the two one-off closures of 31 December 1999 (the year 2000 changeover) and 31 December 2001 (the euro cash changeover).

Example. The closing days of 2026 on weekdays: Thursday 1 January, Good Friday 3 April, Easter Monday 6 April, Friday 1 May and Friday 25 December; 26 December is a Saturday and is not moved.

2.14 The London calendar

A date is a London business day (business centre London, 2006 ISDA Definitions, Sections 1.4 and 1.5) unless it is a Saturday, a Sunday or a bank holiday in England and Wales under the Banking and Financial Dealings Act 1971. The calendar's identifier is London. It is the calendar of sterling payments and SONIA.

Rules.

Bank holiday Date Years
New Year's Day 1 January from 1974
Good Friday, Easter Monday Easter Sunday \(-2\), \(+1\) every year
Early May bank holiday first Monday of May from 1978
Spring bank holiday last Monday of May every year
Summer bank holiday last Monday of August every year
Christmas Day, Boxing Day 25 and 26 December every year

A New Year's Day on a Saturday or Sunday is observed on the next Monday. Christmas Day and Boxing Day on a weekend are observed on the next weekdays not already taken:

\[c' = \mathrm{wd}(25\ \text{Dec}), \qquad b' = \mathrm{wd}\big(\max(26\ \text{Dec},\ c' + 1)\big),\]
(2.16)

where \(\mathrm{wd}(u)\) is \(u\) if it is a weekday and the next Monday otherwise. In words: Christmas on a Saturday gives Monday 27 and Tuesday 28 December; Christmas on a Sunday gives Monday 26 and Tuesday 27 December (Boxing Day keeps the Monday, Christmas takes the Tuesday, the same two days); Christmas on a Friday gives Friday 25 and Monday 28 December. Before 1971 the rules are applied as an approximation.

Confirmed dates. The library ships the corrections from 1999-01-01 to 2027-12-31. They add the one-off bank holidays (Millennium Day 31 December 1999; the Golden, Diamond and Platinum Jubilees in 2002, 2012 and 2022; the royal wedding of 29 April 2011; the state funeral of 19 September 2022; the coronation of 8 May 2023) and move the spring bank holiday in the jubilee years (to 4 June 2002, 4 June 2012 and 2 June 2022) and the early May bank holiday of 2020 to Friday 8 May (VE Day).

Example. The bank holidays of 2026: Thursday 1 January, 3 and 6 April, 4 and 25 May, 31 August, Friday 25 December and Monday 28 December (Boxing Day on a Saturday).

2.15 The Tokyo calendar

A date is a Tokyo business day (business centre Tokyo, Sections 1.4 and 1.6) unless it is a Saturday, a Sunday, a Japanese national holiday, or one of the bank holidays 31 December, 2 January and 3 January. The calendar's identifier is Tokyo. It is the calendar of yen payments and TONA.

National holidays (Act on National Holidays):

Holiday Date Years
New Year's Day 1 January every year
Coming of Age Day 15 January; second Monday of January to 1999; from 2000
National Foundation Day 11 February from 1967
Emperor's Birthday 29 April; 23 December; 23 February to 1988; 1989 to 2018; from 2020
Vernal Equinox Day 20 or 21 March, Equation (2.17) every year
Showa Day (Greenery Day 1989 to 2006) 29 April every year
Constitution Day, Children's Day 3 and 5 May every year
Greenery Day 4 May from 2007
Marine Day 20 July; third Monday of July 1996 to 2002; from 2003
Mountain Day 11 August from 2016
Respect for the Aged Day 15 September; third Monday of September 1966 to 2002; from 2003
Autumnal Equinox Day 22 or 23 September, Equation (2.17) every year
Sports Day 10 October; second Monday of October 1966 to 1999; from 2000
Culture Day, Labour Thanksgiving Day 3 and 23 November every year

Equinoxes. The Cabinet announces the equinox days only in February of the previous year, from the astronomical equinox in Japan Standard Time. The rules use the standard approximation

\[D(y) = \Big\lfloor c + 0.242194\,(y - 1980) - \Big\lfloor \frac{y - y_0}{4} \Big\rfloor \Big\rfloor ,\]
(2.17)

with, for the vernal equinox (day of March), \(c = 20.8357\) and \(y_0 = 1983\) before 1980, \(c = 20.8431\) and \(y_0 = 1980\) from 1980 to 2099, and \(c = 21.8510\), \(y_0 = 1980\) from 2100; for the autumnal equinox (day of September), \(c = 23.2588\), \(23.2488\) and \(24.2488\) with the same \(y_0\). The approximation is published for 1900 to 2150; after 2150 the 2100 constants are kept. From 2000 to 2027 it gives every published equinox day.

Substitute and citizens' holidays. From 12 April 1973 a national holiday on a Sunday gives a substitute holiday:

\[\mathrm{sub}(u) = \begin{cases} u + 1 & \text{before 2007}, \\ \min\{\, v > u : v \notin N \,\} & \text{from 2007}, \end{cases}\]
(2.18)

where \(N\) is the set of national holidays of the year. In words: before 2007 the substitute is the Monday, even if the Monday is already a holiday; from 2007 it is the first following day that is not a national holiday (so a Sunday 3 May gives Wednesday 6 May). From 1986 a day that is not a Sunday and lies between two national holidays is a citizens' holiday (4 May from 1988 to 2006, and some September days such as 22 September 2026). The bank holidays of 31 December, 2 and 3 January are applied in every year.

Confirmed dates. The library ships the corrections from 2000-01-01 to 2027-12-31: the enthronement holidays of 2019 (30 April to 2 May and 22 October), and the holidays moved for the Tokyo Olympic Games (Marine Day, Sports Day and Mountain Day, to 23 and 24 July and 10 August 2020, and to 22 and 23 July and 8 August 2021, the last a Sunday with its substitute on Monday 9 August).

Example. The weekday holidays of 2026: 1 and 2 January, 12 January, 11 and 23 February, 20 March, 29 April, 4 to 6 May (Constitution Day is a Sunday, so the substitute is Wednesday 6 May), 20 July, 11 August, 21 to 23 September (22 September is a citizens' holiday), 12 October, 3 and 23 November, and 31 December.

Known limits. One-off holidays (an imperial event, a moved holiday) cannot be foreseen, and an equinox day can in principle differ from the approximation by a day in years not yet announced.

References

  • International Swaps and Derivatives Association (2006). 2006 ISDA Definitions. ISDA publication.
  • International Swaps and Derivatives Association (2021). 2021 ISDA Interest Rate Derivatives Definitions. ISDA publication.
  • Saudi Central Bank (SAMA) (2025). Holidays and Working Hours. https://www.sama.gov.sa/en-US/Supervision/pages/holidayschedules.aspx Schedule for financial institutions and the SARIE payment system, 2026 to 2029; earlier years by circular.
  • . Umm al-Qura Calendar. https://www.ummulqura.org.sa/en

Reconnecting Connection paused Could not reconnect Could not resume Session expired

The connection to the server was lost. Trying to restore it. Next attempt in 0s. The connection was paused. It will resume on its own. The server did not answer. Your work is still here. The paused session could not be resumed. The server could not restore this session. Reloading will start a new one.

An unhandled error has occurred. Reload 🗙