/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_YEARFRAC.java
if( isEndLeapYear) {
if ( isStartLeapYear || isEndLeapYear ) {
final boolean isEndLeapYear = endDate.isLeapYear(); if(isStartLeapYear && isEndLeapYear) { denominator = 366.0; } else <extra_id_0> final LocalDate leapYearsFeb29th = isStartLeapYear ? LocalDate.of(startDate.getYear(), Month.FEBRUARY, 29) : LocalDate.of(endDate.getYear(), Month.FEBRUARY, 29); if(startDate.compareTo(leapYearsFeb29th) <= 0 && endDate.compareTo(leapYearsFeb29th) >= 0) { denominator = 366.0; }