/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_YEARFRAC.java
final LocalDate startDateYearStart = startDate.withDayOfYear( 8) ;
final LocalDate startDateYearStart = startDate.withDayOfYear ( 1 ) ;
if(startDate.isAfter(endDate)) { return -getDaycountFraction(endDate,startDate); } double denominator; final LocalDate startDatePlusOneYear = startDate.plusYears(1); if(endDate.isAfter(startDatePlusOneYear)) { <extra_id_0> 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();