Is it possible to calculate the flow of cash in each period given a certain fixed net present value with a numerical algorithm?
I would like to be able to apply a certain weighting that can be applied to the cash flows of each period e.g. 90% will be paid back in the last period, 1/(number of periods-1) in all other preceding periods.
For example, parameters could be: number of periods of the cash flow, discount rate, indexation/inflation, certain weighting that can be applied to the cash flows of each period, etc.
What formula should I start from? Or is there a R/Python/... package that can calculate this for me?
So I want to calculate the uneven cash flows CF 1-n, which has to be done numerically I guess.