NAME
Finance::Loan::Repayment - Play with loans, rates and repayment options
VERSION
version 1.5
SYNOPSIS
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,
);
DESCRIPTION
A module to calculate interest per month and principal payments per month
ATTRIBUTES
loan
The loan amount, required.
rate
The interest rate of the loan, required.
Attributes changing the way the principal_payment_per_month
functions works
The following attributes will alter how the principal payment per month function will work.
principal_payment
The amount you want to pay off your loan each month. This changes the total costs per month and the interest you pay.
interest_off
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.
total_payment
The amount you want to pay off each month. This will influence the interest you pay and the principal payment.
METHODS
interest_per_month
$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.
principal_per_month()
$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.
SEE ALSO
- Finance::Amortization
-
This does more or less the same thing as this module
- Finance::Loan
- Finance::Loan::Private
AUTHOR
Wesley Schwengle <waterkip@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2017 by Wesley Schwengle.
This is free software, licensed under:
The MIT (X11) License