Compute present and future value of a single cash flow and cash flow stream.

ivt_cf_fv(cash_flow, interest_rate, years) ivt_cf_pv(cash_flow, discount_rate, years) ivt_cf_stream_fv(cf_stream, interest_rate) ivt_cf_stream_pv(cf_stream, discount_rate)

cash_flow | Cash flow. |
---|---|

interest_rate | Interest rate. |

years | Number of years. |

discount_rate | Discount rate. |

cf_stream | Cash flow stream. |

# future value ivt_cf_fv(100, 10, 4)#> [1] 146.41ivt_cf_fv(191, 10.17, 25)#> [1] 2150.885# present value ivt_cf_pv(39, 11.56, 7)#> [1] 18.13448ivt_cf_pv(373, 6.67, 13)#> [1] 161.1235# cash flow stream future value ivt_cf_stream_fv(c(100, 200, 200, 300), 10)#> [1] 895.1# cash flow stream present value ivt_cf_stream_pv(c(100, 200, 200, 300), 10)#> [1] 611.3653