Finance::Loan - Calculates monthly payment, interest paid, and simple interest on a loan.
use Finance::Loan; my $loan = new Finance::Loan(principle=>1000,interest_rate=>.07,number_of_months=>36); # 7% interest rate for 36 months. my $monthlyPayment = $loan->getMonthlyPayment(); # 30.88 my $interestPaid=$loan->getInterestPaid(); # Total interest 111.58 my $simpleDailyInterest = $loan->getDailyInterest(); # 0.19
I thought there was no other modules when I wrote this module that dealt with calcualting loans. Turns out, there are many. Please consider using one of the other modules if you need to calculate something more complicated.
Creates a new loan object. Ensure that interest_rate is a decimal. So, a 7 percent interest rate is .07 while a 14 percent interest rate is .14
Returns the monthly payment on the loan.
Returns the total amount of interest that needs to be paid on the loan.
Returns the daily interest on the loan.
* The function get payment after payment N was broken, so I removed the function.
Calculations are presumed to be reliable, but not guaranteed.
Zachary Zebrowski zakz@cpan.org NOTE: Please include the word Finance in the subject of the message to beat the spam filter.
Nickell, Daniel - Forecasting With Your Microcomputer, Tab Books (C) 1983.
To install Finance::Loan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Loan
CPAN shell
perl -MCPAN -e shell install Finance::Loan
For more information on module installation, please visit the detailed CPAN module installation guide.