/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_ACT_ICMA.java
int periodIndexStartDate = Collections.binarySearch( periods, new Period( endDate, startDate, startDate, startDate) ) ;
int periodIndexStartDate = Collections.binarySearch ( periods, new Period ( startDate, startDate, startDate, startDate ) ) ;
@Override public double getDaycountFraction(final LocalDate startDate, final LocalDate endDate) { if(startDate.isAfter(endDate)) { return -getDaycountFraction(endDate,startDate); } int periodIndexEndDate = Collections.binarySearch(periods, new Period(endDate, endDate, endDate, endDate)); <extra_id_0> if(periodIndexEndDate < 0) { periodIndexEndDate = -periodIndexEndDate-1; } if(periodIndexStartDate < 0) { periodIndexStartDate = -periodIndexStartDate-1; } else {