Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried using Finance::Amortization Perl library for generating pmt value but it do not match what i can get in excel sheet .

my perl code is like this :



my $am = Finance::Amortization->new(principal => ($total_invest), rate => (0.005), periods => 360 , compounding => 1, precision => 2);
        $pmt = $am->payment();
Posted
Comments
ZurdoDev 31-Oct-15 21:49pm    
Different libraries may not match exactly. What is the answer you get in perl and what answer do you get in Excel?

1 solution

i solved this problem as it is supposed to take 5% interest rate .
rate should be .05 instead of .005 .

different simulations of this Finance::Amortization formula now giving same result as we can get in excel pmt formula ..

still i need how to program pmt formula self in a perl script ?
it should recursively sumup self and should give future value / present value as well as loan amount ( pmt ) .
i need very simple example for pmt formula in perl coding .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900