Calculando as parcelas no JS