Function File: r = rate (n, p, v)
Function File: r = rate (n, p, v, l)
Function File: r = rate (n, p, v, l, method)
Function File: r = rate (n, p, v, method)

Return the rate of return r on an investment of present value v which pays p in n consecutive periods.

The optional argument l may be used to specify an additional lump-sum payment made at the end of n periods.

The optional string argument method may be used to specify whether payments are made at the end ("e", default) or at the beginning ("b") of each period.

See also: pv, pmt, nper, npv.

Package: financial