Advertisement
Didart

Deposit Calculator

Mar 4th, 2022
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function depositCalculator(input) {
  2.     let deposit = Number(input[0]);
  3.     let months = Number(input[1]);
  4.     let percent = Number(input[2]);
  5.  
  6.     let sum = deposit + months * ((deposit * percent / 100) / 12);
  7.  
  8.         console.log(sum);
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement