Advertisement
Weslei_Ramos

Calc

Jul 22nd, 2022
924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const comparativo = (meses: number, juros: number, valorTotal: number) => {
  2.   const cf = juros / (1 - (1 + juros) ** -meses)
  3.   return cf * valorTotal * 10
  4. }
  5.  
  6. console.log(comparativo(10, 0.05, 100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement