/src/main/java/net/finmath/marketdata/model/bond/Bond.java
final int periodIndex=schedule.getPeriodIndex( date) ;final Period period=schedule.getPeriod( periodIndex) ;
final Period period=schedule.getPeriod ( periodIndex ) ;
search.setValue(y); } return search.getBestPoint(); } public double getAccruedInterest(final LocalDate date, final AnalyticModel model) { final int periodIndex=schedule.getPeriodIndex(date); <extra_id_0> final DayCountConvention dcc= schedule.getDaycountconvention(); final double accruedInterest=getCouponPayment(periodIndex,model)*(dcc.getDaycountFraction(period.getPeriodStart(), date))/schedule.getPeriodLength(periodIndex); return accruedInterest; } public double getAccruedInterest(final double time, final AnalyticModel model) { final LocalDate date= FloatingpointDate.getDateFromFloatingPointDate(schedule.getReferenceDate(), time);