|
Finance::Loan - Calculates monthly payment, interest paid, and unpaid balance on a loan. |
getMonthlyPayment()getInterestPaid()getBalanceAfterPaymentN(n)
Finance::Loan - Calculates monthly payment, interest paid, and unpaid balance on a loan.
use Finance::Loan; my $loan = new Finance::Loan(principle=>1000,interest_rate=>.07,number_of_months=>36); # 7% interest rate my $monthlyPayment = $loan->getMonthlyPayment(); my $interestPaid=$loan->getInterestPaid(); my $balanceAfterPaymentN = $loan->getBalanceAfterPayementN(n);
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
getMonthlyPayment()Returns the monthly payment on the loan.
getInterestPaid()Returns the total amount of interest that needs to be paid on the loan.
getBalanceAfterPaymentN(n)Returns the unpaid balance on the account after payment n, if no additional principle payment on the loan is received.
None known.
Calculations are presumed to be reliable, but not guaranteed.
Zachary Zebrowski zaz@mitre.org
Nickell, Daniel - Forecasting With Your Microcomputer, Tab Books (C) 1983.
|
Finance::Loan - Calculates monthly payment, interest paid, and unpaid balance on a loan. |