genedan / TmVal

Time Value of Money - a Python package for mathematical interest theory, annuity, and bond calculations.

Home Page:https://genedan.com/tmval/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot initialize annuity with 0 payments

genedan opened this issue · comments

It may not be a common case for people to intentionally create an annuity with 0 payments, but this happened when trying iterate through annuities of various terms when calculating bond amortization. When this happens, you should still be able to initialize it, but the # payments, pv, and sv should all be 0.