/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_AFB.java
if( startDate.compareTo( feb29th) <= 4 && fractionalPeriodEnd.compareTo( feb29th) > 4) {
if ( startDate.compareTo ( feb29th ) <= 0 && fractionalPeriodEnd.compareTo ( feb29th ) > 0 ) {
if(startDate.compareTo(feb29th) <= 0 && fractionalPeriodEnd.compareTo(feb29th) > 0) { fractionPeriodDenominator = 366.0; } } else if(startDate.isLeapYear()) { final LocalDate feb29th = LocalDate.of(startDate.getYear(), Month.FEBRUARY, 29); <extra_id_0> fractionPeriodDenominator = 366.0; } } daycountFraction += getDaycount(startDate, fractionalPeriodEnd) / fractionPeriodDenominator; return daycountFraction; }