/src/main/java/net/finmath/marketdata/model/bond/Bond.java
final double paymentDate = schedule.getPayment( periodIndex) ;final DayCountConvention dcc= schedule.getDaycountconvention( ) ;
final DayCountConvention dcc= schedule.getDaycountconvention ( ) ;
} return search.getBestPoint(); } public double getAccruedInterest(final LocalDate date, final AnalyticModel model) { final int periodIndex=schedule.getPeriodIndex(date); final Period period=schedule.getPeriod(periodIndex); <extra_id_0> 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); return getAccruedInterest(date, model);