Value of a discounted cashflow
disc_cf(fd, cf)
fd
The discount factor vector
cf
The cashflow
disc_cf(fd = c(1, 0.99, 0.98, 0.97), cf = c(1, -0.3, -0.4, -0.6))