Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
t
 
 
 
 
 
 
 
 
 
 
 
 

README.md

mortgage6

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

install

zef install Mortgage

doc

p6doc Mortgage

or POD

QuickStart

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

# Arrangement fee
$bank.add(Mortgage::AnnualCostConst.new(from=>1, to=>1, value=>$bank.loan-left * percent 1));

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

# Do the sim
$bank.calc;

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

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Languages

  • Other 100.0%
You can’t perform that action at this time.