Calculator::MortgagePayment - Interface to Mortgage Payment Calculator.
Version 0.02
A very lightweight interface to calculate the mortgage payment with either the repayment or interest only option.
The constructor expects three parameters i.e. amount, rate and term as specified below in the table.
+-----------+------------------------------------------------+ | Parameter | Meaning | +-----------+------------------------------------------------+ | amount | The total loan amount without any comma in it. | | rate | The interest rate. | | term | The total number of months. | +-----------+------------------------------------------------+ use strict; use warnings; use Calculator::MortgagePayment; my ($calculator); $calculator = Calculator::MortgagePayment->new(100000, 5.5, 360); # or $calculator = Calculator::MortgagePayment->new({amount => 100000, rate => 5.5, term => 360});
Returns the amount to be paid monthly with repayment option.
use strict; use warnings; use Calculator::MortgagePayment; my $calculator = Calculator::MortgagePayment->new(100000, 5.5, 360); my $repayment = $calculator->repayment();
Returns the amount to be paid monthly with interest only option.
use strict; use warnings; use Calculator::MortgagePayment; my $calculator = Calculator::MortgagePayment->new(100000, 5.5, 360); my $interestOnly = $calculator->interestOnly();
Mohammad S Anwar, <mohammad.anwar at yahoo.com>
<mohammad.anwar at yahoo.com>
Please report any bugs or feature requests to bug-calculator-mortgagepayment at rt.cpan.org or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Calculator-MortgagePayment. I will be notified and then you'll automatically be notified of progress on your bug as I make changes.
bug-calculator-mortgagepayment at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Calculator::MortgagePayment
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Calculator-MortgagePayment
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Calculator-MortgagePayment
CPAN Ratings
http://cpanratings.perl.org/d/Calculator-MortgagePayment
Search CPAN
http://search.cpan.org/dist/Calculator-MortgagePayment/
Copyright 2011 Mohammad S Anwar.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Calculator::MortgagePayment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Calculator::MortgagePayment
CPAN shell
perl -MCPAN -e shell install Calculator::MortgagePayment
For more information on module installation, please visit the detailed CPAN module installation guide.