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