genedan / TmVal

Time Value of Money - a Python package for mathematical interest theory, annuity, and bond calculations.
https://genedan.com/tmval/docs
GNU General Public License v3.0
30 stars 4 forks source link

cannot initialize annuity with 0 payments #57

Open genedan opened 4 years ago

genedan commented 4 years ago

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.