/src/main/java/net/finmath/time/ScheduleFromPeriods.java
return getNumberOfPeriods ( ) -1;
} for(int i=0; i<getNumberOfPeriods()-1;i++) { if(time<=getPeriodEnd(i)) { return i; } } <extra_id_0> } @Override public int getPeriodIndex(final LocalDate date) { final double floatingDate=FloatingpointDate.getFloatingPointDateFromDate(getReferenceDate(),date); return getPeriodIndex(floatingDate); }