ThirdMomentQuantX

Chapter 3

Day count fractions

Contents
  1. 3.1 Notation
  2. 3.2 Periods and day count fractions
  3. 3.3 1/1
  4. 3.4 Actual/360 and Actual/365 (Fixed)
  5. 3.5 Actual/Actual (ISDA)
  6. 3.6 30/360 conventions
  7. 3.7 Actual/Actual (ICMA)
  8. 3.8 Calculation/252
  9. 3.9 Names
  10. 3.10 Worked examples
  11. References

Interest accrues over a period at an annual rate, so every interest amount needs the length of the period expressed as a fraction of a year. A day count fraction is the rule that turns two dates into that fraction. This chapter defines the nine day count fractions of the ISDA Definitions: the eight of the 2006 ISDA Definitions, Section 4.16 (International Swaps and Derivatives Association, 2006), and Calculation/252, added by the 2021 ISDA Interest Rate Derivatives Definitions, Section 4.6 (International Swaps and Derivatives Association, 2021). Dates and differences of dates are those of Chapter 1; business days are those of Chapter 2.

3.1 Notation

Symbol Meaning
\(d_1\), \(d_2\) Start and end dates of the period: \(d_1\) is included, \(d_2\) is not
\((y_i, m_i, q_i)\) Year, month and day of the month of \(d_i\)
\(d_2 - d_1\) Number of calendar days from \(d_1\) to \(d_2\) (Equation (1.3))
\(\delta(d_1, d_2)\) The day count fraction of the period
\(Y(y)\) Days in year \(y\): 366 in a leap year (Equation (1.1)), 365 otherwise
\(Q_1\), \(Q_2\) Days of the month after the adjustments of a 30/360 convention
\([s, e]\) A coupon period, for Actual/Actual (ICMA)
\(P\) Number of coupon periods per year (Equation (1.7))
\(p\) Months in one coupon period: \(p = 12 / P\)
\(n_k\) The \(k\)-th notional coupon date
\(N_C(d_1, d_2)\) Number of business days of calendar \(C\) in \([d_1, d_2)\) (Section 2.6)

3.2 Periods and day count fractions

A period runs from its start date \(d_1\), included, to its end date \(d_2\), excluded. This matches ISDA, where a Calculation Period includes its first day and runs up to, but not including, its last date, and where the formulas use "the day immediately following the last day included" as the end date.

  • The end date must not be before the start date. If \(d_2 < d_1\), the calculation is an error; there are no negative day count fractions.
  • An empty period (\(d_2 = d_1\)) has fraction 0, except under 1/1 (Section 3.3).
  • The dates used are those the trade specifies for accrual. Whether those are adjusted for business days is decided by the trade (the 2006 Definitions' "Adjusted" or "Unadjusted" calculation periods), not by the day count.

3.3 1/1

Every period counts as exactly one year:

\[\delta(d_1, d_2) = 1 .\]
(3.1)

ISDA name: "1/1" (Section 4.16(a)). It is used where the whole rate is paid once, whatever the length of the period.

3.4 Actual/360 and Actual/365 (Fixed)

The actual number of days is divided by a fixed year length.

\[\delta_{\text{Act/360}}(d_1, d_2) = \frac{d_2 - d_1}{360}\]
(3.2)
\[\delta_{\text{Act/365F}}(d_1, d_2) = \frac{d_2 - d_1}{365}\]
(3.3)

In words: count the calendar days in the period and divide by 360 (or 365). Leap years make no difference. A full year therefore counts as \(365/360\) or \(366/360\) under Actual/360. Actual/360 is the money-market convention for USD, and both legs of USD SOFR OIS and SAR SAIBOR swaps use it. ISDA names: "Actual/360", also "Act/360" or "A/360" (Section 4.16(e)); "Actual/365 (Fixed)", also "Act/365 (Fixed)", "A/365 (Fixed)" or "A/365F" (Section 4.16(d)).

3.5 Actual/Actual (ISDA)

Each day in the period is weighted by the length of the year it falls in: \(1/366\) in a leap year and \(1/365\) otherwise. For \(y_1 = y_2\), \(\delta = (d_2 - d_1) / Y(y_1)\). Otherwise the period is split at each 1 January:

\[\delta_{\text{Act/Act ISDA}}(d_1, d_2) = \frac{(y_1 + 1, 1, 1) - d_1}{Y(y_1)} + (y_2 - y_1 - 1) + \frac{d_2 - (y_2, 1, 1)}{Y(y_2)} .\]
(3.4)

The three terms are the part of the first year, the whole years in between (each counts exactly 1), and the part of the last year. When \(d_2\) is a 1 January, the last term is 0. ISDA names: "Actual/Actual (ISDA)", also "Actual/Actual", "Act/Act" or "Act/Act (ISDA)" (Section 4.16(b)). The 2006 Definitions removed the older names "Actual/365" and "A/365" for this convention, so they are not accepted.

3.6 30/360 conventions

These conventions treat every month as 30 days and every year as 360 days. The fraction is

\[\delta(d_1, d_2) = \frac{360\,(y_2 - y_1) + 30\,(m_2 - m_1) + (Q_2 - Q_1)}{360},\]
(3.5)

where \(Q_1\) and \(Q_2\) are the days of the month \(q_1\) and \(q_2\) after an adjustment that depends on the convention. In words: count whole years as 360 days and whole months as 30 days, then add the difference of the adjusted days of the month.

30/360, also "360/360" or "Bond Basis" (Section 4.16(f)):

\[Q_1 = \min\{q_1, 30\}, \qquad Q_2 = \begin{cases} 30 & \text{if } q_2 = 31 \text{ and } Q_1 > 29, \\ q_2 & \text{otherwise.} \end{cases}\]
(3.6)

A 31st at the end is moved to the 30th only when the period also starts on the 30th or 31st.

30E/360, also "Eurobond Basis" (Section 4.16(g)):

\[Q_1 = \min\{q_1, 30\}, \qquad Q_2 = \min\{q_2, 30\} .\]
(3.7)

Every 31st is moved to the 30th.

30E/360 (ISDA) (Section 4.16(h)):

\[Q_1 = \begin{cases} 30 & \text{if } d_1 \text{ is the last day of its month,} \\ q_1 & \text{otherwise;} \end{cases} \qquad Q_2 = \begin{cases} 30 & \text{if } d_2 \text{ is the last day of its month, unless it is in February and is the Termination Date,} \\ q_2 & \text{otherwise.} \end{cases}\]
(3.8)

ISDA states the rule as "the last day of February, or the 31st"; since 30 is already the last day of a 30-day month, moving every month end to 30 is the same rule. The Termination Date is the final date of the trade, so the caller states whether \(d_2\) is it.

Unlike the actual conventions, the 30/360 conventions are not additive: splitting a period in two can change the total.

3.7 Actual/Actual (ICMA)

This convention, used for bonds, weights each day by the length of the coupon period it falls in, so that every regular coupon is exactly \(1/P\) of the annual rate. ISDA defines it by reference to ICMA Rule 251 (Section 4.16(c)); the 2021 Definitions keep it and add that the period end dates are not adjusted for business days when it applies.

It needs more than two dates: the accrual period \([d_1, d_2)\) lies inside a coupon period \([s, e]\), with \(s \le d_1 \le d_2 \le e\) and \(s < e\), and the coupons have \(P\) periods per year, with \(p = 12 / P\) months per period. \(P\) must be a whole number (annual, semi-annual, quarterly, monthly, and so on).

Notional periods. A coupon period may be irregular (a short or long first or last period). It is then divided into notional periods of regular length, generated from a fixed anchor date by month shifts (Equation (1.5)). For a first period the anchor is \(e\) and the notional dates go backwards; for a last period the anchor is \(s\) and they go forwards:

\[n_k = M_{-kp}(e) \quad \text{(from the end)}, \qquad n_k = M_{kp}(s) \quad \text{(from the start)}, \qquad k = 0, 1, 2, \dots\]
(3.9)

until the notional dates reach or pass the other end of the coupon period. If the end-of-month option is chosen and the anchor is the last day of its month, every \(n_k\) is moved to the last day of its month. (The general end-of-month rule belongs to schedules; here it only fixes the notional dates.) A regular coupon period is a single notional period: \([s, e]\) itself.

Fraction. Each notional period \([u, v]\) contributes the days of the accrual that fall in it, divided by \(P\) times its length:

\[\delta_{\text{Act/Act ICMA}}(d_1, d_2) = \sum_{[u, v]} \frac{\max\{0,\ \min\{d_2, v\} - \max\{d_1, u\}\}}{P\,(v - u)} .\]
(3.10)

In words: within one regular period, each day is worth \(1/(P \times \text{days in that period})\). A full regular period gives \(1/P\); a long first period made of one full notional period and part of another gives a little more than \(1/P\).

Edge case. The notional periods of an irregular coupon period extend past it by up to one regular period, so a coupon period within one regular period of the first or last supported date (Section 1.2) is an error. The frequency must be set and have a whole number of periods per year (Section 1.6).

ISDA names: "Actual/Actual (ICMA)", also "Act/Act (ICMA)".

3.8 Calculation/252

The number of business days in the period, divided by 252 (about the number of business days in a year):

\[\delta_{\text{Calc/252}}(d_1, d_2) = \frac{N_C(d_1, d_2)}{252},\]
(3.11)

where \(C\) is the holiday calendar of the trade and \(N_C\) counts business days from \(d_1\), included, to \(d_2\), excluded (Section 2.6). It is used mainly for Brazilian real rates. ISDA name: "Calculation/252".

The 2021 Definitions add this convention to those of the 2006 Definitions, which did not have it; the definition above (business days over 252) is the one meant.

3.9 Names

Each day count is written with its ISDA name. The library reads the names and aliases below, ignoring upper and lower case and surrounding spaces, and writes the first name of each row.

Day count Names accepted (the first is written) Source
1/1 1/1 2006, 4.16(a)
Actual/Actual (ISDA) Actual/Actual (ISDA), Actual/Actual, Act/Act, Act/Act (ISDA) 2006, 4.16(b)
Actual/Actual (ICMA) Actual/Actual (ICMA), Act/Act (ICMA) 2006, 4.16(c)
Actual/365 (Fixed) Actual/365 (Fixed), Act/365 (Fixed), A/365 (Fixed), A/365F 2006, 4.16(d)
Actual/360 Actual/360, Act/360, A/360 2006, 4.16(e)
30/360 30/360, 360/360, Bond Basis 2006, 4.16(f)
30E/360 30E/360, Eurobond Basis 2006, 4.16(g)
30E/360 (ISDA) 30E/360 (ISDA) 2006, 4.16(h)
Calculation/252 Calculation/252 2021, 4.6

Conventions that are not in the ISDA Definitions, such as Actual/364, Actual/365L, Actual/Actual (AFB) and the U.S. "30/360" with February rules, are not provided; they will be added, as non-ISDA conventions, when a product needs them.

3.10 Worked examples

Day count \(d_1\) \(d_2\) Calculation \(\delta\)
1/1 2026-01-15 2026-04-15 Equation (3.1) 1
Actual/360 2026-01-15 2026-04-15 \(90 / 360\) 0.25
Actual/365 (Fixed) 2026-01-15 2026-04-15 \(90 / 365\) 0.246575…
Actual/Actual (ISDA) 2023-11-15 2024-05-15 \(47/365 + 135/366\) 0.497620…
30/360, 30E/360, 30E/360 (ISDA) 2026-01-31 2026-03-31 \((30 \cdot 2 + 30 - 30)/360\) 0.166667…
30/360 2026-01-15 2026-03-31 \((60 + 31 - 15)/360\) 76/360
30E/360, 30E/360 (ISDA) 2026-01-15 2026-03-31 \((60 + 30 - 15)/360\) 75/360
30/360 2026-02-28 2026-08-31 \((180 + 31 - 28)/360\) 183/360
30E/360 2026-02-28 2026-08-31 \((180 + 30 - 28)/360\) 182/360
30E/360 (ISDA) 2026-02-28 2026-08-31 \((180 + 30 - 30)/360\) 0.5
30E/360 (ISDA), \(d_2\) not the Termination Date 2025-08-31 2026-02-28 \((360 - 180 + 30 - 30)/360\) 0.5
30E/360 (ISDA), \(d_2\) the Termination Date 2025-08-31 2026-02-28 \((360 - 180 + 28 - 30)/360\) 178/360
Actual/Actual (ICMA), semi-annual, coupon period 2026-03-15 to 2026-09-15 2026-03-15 2026-06-15 \(92 / (2 \cdot 184)\) 0.25
Actual/Actual (ICMA), semi-annual, short first period 2026-02-01 to 2026-09-15 2026-02-01 2026-09-15 \(42/(2 \cdot 181) + 184/(2 \cdot 184)\) 0.616022…
Calculation/252, U.S. government securities calendar 2026-01-02 2026-02-02 \(20 / 252\) 0.079365…

Actual/Actual (ISDA). From 2023-11-15 to 2024-01-01 there are 47 days in 2023 (not a leap year); from 2024-01-01 to 2024-05-15 there are 135 days in 2024 (a leap year). No whole year lies in between, so \(\delta = 47/365 + 135/366 = 0.128767 + 0.368852 = 0.497620\).

Short first ICMA period. Counting back from \(e = 2026\text{-}09\text{-}15\) by 6 months gives the notional dates 2026-03-15 and 2025-09-15. The notional period from 2025-09-15 to 2026-03-15 has 181 days, of which the 42 days from 2026-02-01 to 2026-03-15 are accrued: \(42 / (2 \times 181) = 0.116022\). The notional period from 2026-03-15 to 2026-09-15 is accrued in full: \(0.5\). The total is \(0.616022\).

Calculation/252. From 2026-01-02 to 2026-02-02 the U.S. government securities calendar (Section 2.9) has 21 weekdays, one of which, 2026-01-19 (Martin Luther King Jr. Day), is a holiday: 20 business days.

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.

(International Swaps and Derivatives Association, 2006; International Swaps and Derivatives Association, 2021)

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 🗙