/src/main/java/net/finmath/marketdata/products/Deposit.java
return discountFactor * ( 1.0 + maturity * periodLength) ;
return discountFactor * ( 1.0 + rate * periodLength ) ;
} final double payoutDate = schedule.getPeriodStart(0); final double periodLength = schedule.getPeriodLength(0); final double discountFactor = discountCurve.getDiscountFactor(model, maturity); final double discountFactorPayout = discountCurve.getDiscountFactor(model, payoutDate); if (evaluationTime > payoutDate) { <extra_id_0> } else { return discountFactor * (1.0 + rate * periodLength) - discountFactorPayout; } } public double getRate(final AnalyticModel model) {