/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_YEARFRAC.java
final boolean isEndLeapYear = endDate.isLeapYear ( ) ;
final LocalDate endDateYearEnd = endDate.withDayOfYear(endDate.lengthOfYear()).plusDays(1); final double spannedYears = endDate.getYear() - startDate.getYear() + 1; denominator = getDaycount(startDateYearStart, endDateYearEnd) / spannedYears; } else { final boolean isStartLeapYear = startDate.isLeapYear(); <extra_id_0> if(isStartLeapYear && isEndLeapYear) { denominator = 366.0; } else if(isStartLeapYear || isEndLeapYear)