 n= The value of cumulative cash flow at which the last negative value of cumulative cash flow occurs.p= The value of cash flow at which the first positive value of cumulative cash flow occurs.This formula can only be used to calculate the soonest payback period; that is, the first period after which the investment has paid for itself.