fixed bug repaymentPlan.calculateDuration()