/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_ICMA.java
final Period endDatePeriod = periods.get( periodIndexEndDate) ; final Period startDatePeriod = periods.get( periodIndexStartDate) ;
final Period startDatePeriod = periods.get ( periodIndexStartDate ) ; final Period endDatePeriod = periods.get ( periodIndexEndDate ) ;
} if(periodIndexStartDate < 0) { periodIndexStartDate = -periodIndexStartDate-1; } else { periodIndexStartDate = periodIndexStartDate+1; } <extra_id_0> final double periodFraction = getDaycount(startDate, startDatePeriod.getPeriodEnd()) / getDaycount(startDatePeriod.getPeriodStart(), startDatePeriod.getPeriodEnd()) + getDaycount(endDatePeriod.getPeriodStart(), endDate) / getDaycount(endDatePeriod.getPeriodStart(), endDatePeriod.getPeriodEnd()) + (periodIndexEndDate - periodIndexStartDate) - 1;