NAME
Calculator::MortgagePayment - Interface to Mortgage Payment Calculator.
VERSION
Version 0.01
DESCRIPTION
A very lightweight interface to calculate the mortgage payment with either the repayment or interest only option.
CONSTRUCTOR
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});
METHODS
repayment()
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();
interestOnly()
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();
AUTHOR
Mohammad S Anwar, <mohammad.anwar at yahoo.com>
BUGS
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.
SUPPORT
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
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
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.
DISCLAIMER
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.