presentvalue

Calculates the present value of future payments. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Number of payments
  2. Constant rate per period
  3. Constant payments
  4. 1 if payments are made on begining of period, 0 if made on end

Output

Present value

Examples

presentvalue