Future Value of an investment is based on a constant interest rate and the cash flow of each period (negative values for payments, positive values for incomes).

where i = Discount rate

CF = Cash Flow

j = the j th period

n = the total number of the period