/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_AFB.java
if( startDate.compareTo( feb29th) <= 0 && fractionalPeriodEnd.compareTo( feb29th) > 0) { final LocalDate feb29th = LocalDate.of( fractionalPeriodEnd.getYear( ) , Month.FEBRUARY, 29) ;if( fractionalPeriodEnd.isLeapYear( ) ) {
if ( fractionalPeriodEnd.isLeapYear ( ) ) { final LocalDate feb29th = LocalDate.of ( fractionalPeriodEnd.getYear ( ) , Month.FEBRUARY, 29 ) ; if ( startDate.compareTo ( feb29th ) <= 0 && fractionalPeriodEnd.compareTo ( feb29th ) > 0 ) {
if (endDate.getDayOfMonth() == endDate.lengthOfMonth()) { fractionalPeriodEnd = fractionalPeriodEnd.withDayOfMonth(fractionalPeriodEnd.lengthOfMonth()); } } double daycountFraction = endDate.getYear() - fractionalPeriodEnd.getYear(); double fractionPeriodDenominator = 365.0; <extra_id_0> fractionPeriodDenominator = 366.0; } } else if(startDate.isLeapYear()) { final LocalDate feb29th = LocalDate.of(startDate.getYear(), Month.FEBRUARY, 29); if(startDate.compareTo(feb29th) <= 0 && fractionalPeriodEnd.compareTo(feb29th) > 0) {