PHP Excel's PMT() function


/ Published in: PHP
Save to your folder(s)

Found elsewhere on the Internet after much searching, this one worked perfectly for me.


Copy this code and paste it in your HTML
  1. function PMT($i, $n, $p)
  2. {
  3. return $i * $p * pow((1 + $i), $n) / (1 - pow((1 + $i), $n));
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.