Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calculatorDepoziti(arg1, arg2, arg3) {
- let depositedAmount = Number(arg1);
- let termOfTheDeposit = Number(arg2);
- let annualInterestRate = Number(arg3);
- let interest = depositedAmount * (annualInterestRate / 100);
- let monthlyInterest = interest / 12;
- let totalSum = depositedAmount + termOfTheDeposit * monthlyInterest;
- console.log(totalSum.toFixed(2));
- }
- calculatorDepoziti("200",
- "3",
- "5.7");
Advertisement
Add Comment
Please, Sign In to add comment