|
Posted by Krustov on 02/27/06 22:19
<comp.lang.php , Luisa , luisa.lg@iol.it>
<dtvfr5$8ar$1@fata.cs.interbusiness.it>
<Mon, 27 Feb 2006 19:20:47 +0100>
> Php financial functions exist?
> I need funcion to calculate the rate of a loan.
>
$vatno=1000;
$vat="30";
$vatyes=$vatno+($vat*($vatno/100));
$pr=number_format($vatyes,0);
$pr=$pr+1;
$fin="$pr" . ".00";
$fin would be 1300 or whatever .
Yes its a cut-n-paste and you will need to adapt it to suit .
Navigation:
[Reply to this message]
|