No description, website, or topics provided.
Perl 6
Switch branches/tags
Nothing to show
Latest commit 4d4bf91 May 31, 2017 @teodozjan committed on GitHub Update
Failed to load latest commit information.
examples Fixed big typo Nov 2, 2015
lib Fixed scope Nov 10, 2015
t Fixed scope Nov 10, 2015
.gitignore Initial commit Mar 4, 2015
.travis.yml Update .travis.yml Oct 12, 2015
LICENSE Initial commit Mar 4, 2015
META6.json Update META6.json Apr 26, 2017 Update May 31, 2017


Mortgage6 is little but usable library that allows to calculate all costs of mortage. Since banks give a lot of discounts if buying their products it is harder see the costs


zef install Mortgage


p6doc Mortgage

or POD


my $bank =>"BANK2",interest_rate => rate-monthly(3.30), mortage=> 1300.73, mortages => 360, loan-left=> 297000.FatRat);

# Arrangement fee
$bank.add(>1, to=>1, value=>$ * percent 1));

# Should give the same amount you have from bank
my $mortgage =  $bank.calc_mortage;

# Do the sim

my $loanleft = $;
my $total_cost = $bank.total_cost.round(0.01);
my $total_interest= $bank.total_interest.round(0.01);