NUMERICAL AUDIT · 5 DECEMBER 2026

OpenGamma Strata loses or adds two days of interest when an overnight rate cut-off meets a Friday

Xamit Kadirbekov and Daniyal Kadirbekov, GERO Numerical Assurance

REPRODUCED · FIX PROPOSED. Fix and test open as Strata pull request #2835 (5 December 2026). Reproduced on the compiled Strata code at master commit 171b1c3 (release 2.12.78). Reproduction: StrataCutoffCheck.java.

OpenGamma Strata is an open-source Java library for pricing and risk on interest rate, credit and FX products, maintained today under Trading Technologies. Among other things, it computes the interest on loans and swaps that pay a compounded overnight rate, such as SOFR or Fed Funds in the United States and SONIA in the United Kingdom.

How a compounded overnight rate works

The rate changes every business day, and the interest for a period is built day by day: each day’s rate is applied for as long as it is in force. A rate fixed on a Friday stays in force over the weekend, so it counts for three days; a rate fixed on a Tuesday counts for one.

Some contracts add a rate cut-off: the last one or two days of the period reuse an earlier rate, so that the payment can be computed a little before the period ends. The rate is frozen, but each day still accrues over its own length. Strata’s own documentation of rateCutOffDays says so: the rate observed on the cut-off date “is also to be used on” the following days.

What the code does

In ForwardOvernightCompoundedRateComputationFn the loop that collects the lengths of the cut-off days steps back one business day before reading each length:

LocalDate currentFixing = lastFixing;
for (int i = 0; i < cutoffOffset - 1; i++) {
  currentFixing = calendar.previous(currentFixing);     // steps back first
  ... accrualFactorCutoff[i] = length of currentFixing  // so this is the day before
}

Each cut-off day is therefore given the length of the day before it. The day just before the cut-off is counted twice, and the last day of the period is never counted. When all the days involved are Monday to Thursday, every length is one day and the result is unaffected, which is why the existing tests, which use such days, pass. When a Friday is involved, the three-day weekend lands on the wrong day.

−27,820on 100 million at 5% when the last fixing is a Friday
+27,832when the cut-off date itself is a Friday
2 daysof interest lost or added, whatever the length of the period

Examples

PeriodCut-offStrataCorrectOn 100 million
Mon 24 Feb – Mon 10 Mar 2025none5.0042%5.0042%0
Mon 24 Feb – Mon 10 Mar 20252 days4.2888%5.0042%−27,820
Mon 24 Feb – Tue 11 Mar 20252 days5.6725%5.0046%+27,832

USD Fed Funds, ACT/360, a flat 5% curve, so that the only difference is in the day lengths. In the first case the last fixing is Friday 7 March: it should count for three days, but receives Thursday’s one day. In the second, the cut-off date is Friday 7 March: Monday 10 March receives Friday’s three days instead of its own one. Either way the error is about two days of interest, 100 million × 5% × 2/360 = 27,778, whether the period is two weeks or three months.

What it can lead to. A system that prices or settles cut-off coupons with this function would show a coupon that is wrong by about two days of interest whenever a Friday falls among the last days of the period. The same lengths are used for already fixed periods and for interest rate sensitivities, so risk figures for these coupons would be slightly off too. Rate cut-offs are uncommon in standard swaps and more common in loans and some notes.

How we checked

We ran Strata’s own compiled classes, not a re-implementation, against an independent day-by-day calculation in which each fixing accrues over its own period. With the one-line fix the two agree exactly. We added a test with a Friday last fixing: it fails on the current code (0.006940 instead of 0.011860) and passes with the fix. With the fix, all 3,484 tests of Strata’s pricer module pass in our run.

Download the check: StrataCutoffCheck.java. It compiles against the Strata jars and prints the table above.

Fix and status

The fix reads each day’s length before stepping back; it is open, with the new test, as pull request #2835, filed on 5 December 2026. We found no earlier report of this in the project’s issues and pull requests.

Limits

We do not know which firms use this Strata function for coupons with a rate cut-off, or whether any payment has been computed with it; we make no claim that anyone has been over- or underpaid. The examples use a flat curve chosen by us; with a real curve the size of the error also depends on the rates of the days involved. The sensitivity effect follows from the code; we did not measure it separately.