Download EPUB

:red_circle: Add correct logic to create variable 'dollarsAboveThresh… · FagnerMartinsBrack/jack-the-moneylender@ea640a5

GitHub 1 min read Original article

This article is too short to generate a summary.

Commit ea640a5

committed

🔴 Add correct logic to create variable 'dollarsAboveThreshold'

1 file changed

Lines changed: 1 addition & 0 deletions

Lines changed: 1 addition & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -19,6 +19,7 @@

1919

}

2020
2121

if (loanAmount.equalsTo(Money('$5001.00'))) {

22+

const dollarsAboveThreshold = Money('$5001.00').minus(Money('$5000.00'));

2223

const interestAmount = Money('$0.14').multipliedBy(dollarsAboveThreshold);

2324

return interestAmount;

2425

}

Keep this one

Free to use, with no card: save new links within daily limits and read everything you save.

Every new account gets the paid plan for its first 14 days.