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