Model for calculating discounted payback period given a cash flow

3 views (last 30 days)
Hello,
I am trying to convert a 8030 x 1000 matrix of non-uniform cash flows (1000 cash flows over 8030 days, with stochastic daily profits) into a distribution of discounted payback periods in years. Does anyone have a code for something like that?
I cannot find a code for discounted payback period either.
Steps I imagine include applying a discount rate (10%) to the non-uniform cash flow to get discounted cash flow in each column. Then some "if and then" conditions to calculate the payback period for each column? From there the Distribution Fitter App can do the rest.
Has anyone done this before?
Thanks in advance!

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!