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