/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_ISDA.java
daycountFraction += getDaycount( endDateStartYear, endDate) / endDate.lengthOfYear( ) ;daycountFraction += getDaycount( startDate, startDateNextYear) / startDate.lengthOfYear( ) ;
daycountFraction += getDaycount ( startDate, startDateNextYear ) / startDate.lengthOfYear ( ) ;
} double daycountFraction = endDate.getYear() - startDate.getYear() - 1.0; LocalDate startDateNextYear = LocalDate.of(startDate.getYear()+1,Month.JANUARY,1); if(isCountLastDayNotFirst) { startDateNextYear = startDateNextYear.minusDays(1); } <extra_id_0> LocalDate endDateStartYear = LocalDate.of(endDate.getYear(), Month.JANUARY, 1); if (isCountLastDayNotFirst) { endDateStartYear = endDateStartYear.minusDays(1); } daycountFraction += getDaycount(endDateStartYear, endDate) / endDate.lengthOfYear(); return Math.max(daycountFraction,0.0);