powered by
Value of a discounted cashflow
disc_cf(fd, cf)
The discount factor vector
The cashflow
disc_cf(fd = c(1, 0.99, 0.98, 0.97), cf = c(1, -0.3, -0.4, -0.6))
Run the code above in your browser using DataLab