The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Finance::Loan::Private - Private loan under UK tax law.

VERSION

Version 0.01

SYNOPSIS

This script calculates the repayment schedule and tax deductions for a private loan under UK tax law.

Perhaps a little code snippet.

    use Finance::Loan::Private;

    my $foo = Finance::Loan::Private->new();
    ...

EXPORT

 premium

SUBROUTINES/METHODS

premium($principal, $rate, $years)

Calculates a conventional monthly mortgage premium. The calculated figure is slightly too high for our purposes as it does not take account of the tax deductions.

$principal

The amount of the loan.

$rate

The interest rate as a percentage.

$years

The period of the loan in years

Returns

A monthly premium

sorter($list)

Sorts a list of hashrefs each of which contains a 'date' key. The value of the date key is a ISO8601 date in the form yyyy-mm-dd. Used for sorting lists of advances on the loan, changes of tax rate etc.

$list

An arrayref of hashrefs. Each hashref must contain a 'date' key whose value is a ISO8601 date.

Returns

A list (not a list ref) of sorted hashref.

AUTHOR

Raphael Mankin, <rapmankin at cpan.org>

BUGS

Please report any bugs or feature requests to bug-finance-loan-private at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Finance-Loan-Private. 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 Finance::Loan::Private

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Raphael Mankin.

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.