Contents:
Calculate present value of annuity (ordinary or due).
payment (float) – Periodic payment amount.
rate (float) – Interest rate per period (as decimal).
periods (int) – Number of periods.
due (bool, default False) – If True, calculate annuity due. If False, ordinary annuity.
Present value of annuity.
float