Guest User

Untitled

a guest
Nov 22nd, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan2000));
  2. }
  3.  
  4. - if (loanAmount.greaterThan(Money('$5000.00')) && loanAmount.lessThan(Money('$10001.00'))) {
  5. + if (loanAmount.greaterThan(Money('$5000.00'))) {
  6. interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan5000));
  7. }
  8.  
  9. if (loanAmount.greaterThan(Money('$10000.00'))) {
  10. - interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan5000));
  11. interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan10000));
  12. }
Add Comment
Please, Sign In to add comment