Finance::Loan::Repayment - Play with loans, rates and repayment options
version 1.5
use Finance::Loan::Repayment; my $calc = Finance::Loan::Repayment->new( loan => 100, rate => 5, # The following parameters are optional # Reduce interest by 1 each month interest_off => 1, # Principal payment per month principal_payment => 30, # Total amount to pay per month total_payment => 30, );
A module to calculate interest per month and principal payments per month
The loan amount, required.
The interest rate of the loan, required.
principal_payment_per_month
The following attributes will alter how the principal payment per month function will work.
The amount you want to pay off your loan each month. This changes the total costs per month and the interest you pay.
The amount you want to pay off your interest each month. This changes the total costs per month and the interest you pay. This will make your additional payment steady.
The amount you want to pay off each month. This will influence the interest you pay and the principal payment.
$calc->interest_per_month(); $calc->interest_per_month(1000);
Calculates the interest amount per month on the loan. An optional loan parameter can be used.
$calc->principal_per_month(); $calc->principal_per_month(1000);
Calculates the principal payments per month based on the constructor arguments. An optional loan parameter can be used.
This does more or less the same thing as this module
Wesley Schwengle <waterkip@cpan.org>
This software is Copyright (c) 2017 by Wesley Schwengle.
This is free software, licensed under:
The MIT (X11) License
To install Finance::Loan::Repayment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Loan::Repayment
CPAN shell
perl -MCPAN -e shell install Finance::Loan::Repayment
For more information on module installation, please visit the detailed CPAN module installation guide.