Hackerss.com

Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in
hackerss
hackerss

Posted on

Formula del interes compuesto in Php

Formula del interes compuesto - Php:


function formula_del_interes_compuesto($capital, $tasa, $periodos) {
  $interes = 0;
  $interes = ($capital * $tasa * $periodos) / 100;
  return $interes;
}

//example
$result = formula_del_interes_compuesto(100, 10, 5);

//output
echo $result; //50


Enter fullscreen mode Exit fullscreen mode

Oldest comments (0)