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
27 stars 4 forks source link

Add validation to make sure tiers in TieredBal, TieredTime classes are in order #42

Open genedan opened 4 years ago

genedan commented 4 years ago

It won't really make sense if the tiers are provided out of order since the way they are defined depends on the order. These classes should enforce this rule.