daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $cap = 120000;
  2. $rata = 678;
  3. $tasso = 3.2;
  4. $num = 240;
  5. $spese = 10000;
  6. $ris=$cap;
  7. $tot=$cap-$spese;
  8. $c=0;
  9. for($i=$tasso; $tot<=(int)$ris; $i=$i+0.0001){
  10.     $f1=pow((1+($i/100)), -(1/12));
  11.     $f2=$rata*$f1;
  12.     $f3=(1-(pow((1+($i/100)), -($num/12))));
  13.     $f4=$f3/(1-$f1);
  14.     $ris=$f2*$f4;
  15.     echo $ris." ".number_format($i,2,",",".")." $c<br>";
  16.     $c++;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top