pduration
Periods needed for a lump-sum to grow to a target value.
Syntax
Section titled “Syntax”v = pduration(rate, pv, fv)Description
Section titled “Description”Returns log(fv/pv) / log(1 + rate) — the number of compounding periods required for pv to grow to fv at periodic rate rate. No payments — pure compound growth.
Example
Section titled “Example”pduration(0.025, 1000, 1500) % periods at 2.5%/period