Why not adopt me?
NAME
Finance::Loan - Calculates monthly payment, interest paid, and simple interest on a loan.
SYNOPSIS
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
DESCRIPTION
Note: Try to use another module than this one for Finances.
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.
new Finance::Loan(principle=>1000,interest_rate=>.07,number_of_months=>36)
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
$loan->getMonthlyPayment()
Returns the monthly payment on the loan.
$loan->getInterestPaid()
Returns the total amount of interest that needs to be paid on the loan.
$loan->getBalanceAfterPaymentN(n)
Returns the unpaid balance on the account after payment n, if no additional principle payment on the loan is received.
$loan->getDailyInterest();
Returns the daily interest on the loan.
BUGS
None known.
DISCLAIMER
Calculations are presumed to be reliable, but not guaranteed.
AUTHOR
Zachary Zebrowski zaz@mitre.org
SEE ALSO
Nickell, Daniel - Forecasting With Your Microcomputer, Tab Books (C) 1983.