Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $days = 200 * 12;
- $investment = 1;
- $percent = 0.55 ;
- for( $i=0;$i< $days; $i++ ){
- // echo ' On day '.($i+1).' investment is: '. $investment.' and end of the day: '. ($investment + ( $percent * ($investment/100) ));
- $investment = ($investment + ( $percent * ($investment/100)));
- // echo '<br>';
- }
- echo ' On day '.($i+1).' investment is: '. $investment.' and end of the day: '. round($investment + ( $percent * ($investment/100) ));
- ?>
Add Comment
Please, Sign In to add comment