Math::Financial contains common functions for loans and annuities. WWW: https://metacpan.org/release/Math-Financial