/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_AFB.java
if ( startDate.isBefore( fractionalPeriodEnd) ) {
if ( fractionalPeriodEnd.isBefore ( startDate ) ) {
return -getDaycountFraction(endDate,startDate); } LocalDate fractionalPeriodEnd = endDate.plusYears(startDate.getYear() - endDate.getYear()); if (endDate.getDayOfMonth() == endDate.lengthOfMonth()) { fractionalPeriodEnd = fractionalPeriodEnd.withDayOfMonth(fractionalPeriodEnd.lengthOfMonth()); } <extra_id_0> fractionalPeriodEnd.plusYears(1); if (endDate.getDayOfMonth() == endDate.lengthOfMonth()) { fractionalPeriodEnd = fractionalPeriodEnd.withDayOfMonth(fractionalPeriodEnd.lengthOfMonth()); } } double daycountFraction = endDate.getYear() - fractionalPeriodEnd.getYear();