Perl module containing common functions for loans and annuities