Return the rate of return 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.