/src/main/java/net/finmath/marketdata/model/volatilities/CapletVolatilities.java
if ( maturityGreaterEqualIndex < 0) {   maturityGreaterEqualIndex = ( -maturityGreaterEqualIndex) - 1; }
[Delete]
Arrays.sort(maturities); } int maturityGreaterEqualIndex = Arrays.binarySearch(maturities, maturity); if(maturityGreaterEqualIndex < 0) { maturityGreaterEqualIndex = -maturityGreaterEqualIndex-1; } <extra_id_0> maturityGreaterEqualIndex = maturities.length-1; } final double maturityGreaterOfEqual = maturities[maturityGreaterEqualIndex]; final double adjustedStrike = getForwardCurve().getValue(model, maturityGreaterOfEqual) + (strike - getForwardCurve().getValue(model, maturity)); value = capletVolatilities.get(maturityGreaterOfEqual).getValue(adjustedStrike); }