/src/main/java/net/finmath/montecarlo/interestrate/products/MoneyMarketAccount.java
final RandomVariable forwardRate  = model.getForwardRate( time, time+accrualPeriod) ;
final RandomVariable forwardRate  = model.getForwardRate ( time, time, time+accrualPeriod ) ;
} if(accrualPeriod <= 0) { return new RandomVariableFromDoubleArray(Double.MAX_VALUE); } RandomVariable value = new RandomVariableFromDoubleArray(initialValue); for(double time=inceptionTime; time<evaluationTime; time += accrualPeriod) { <extra_id_0> final double currentAccrualPeriod = Math.min(accrualPeriod , evaluationTime-time); value = value.accrue(forwardRate, currentAccrualPeriod); } return value; } }