PHP - number: Calculating Future ValueTag: number. calculation, future value Category: PHP Basicpost: 16 Mar 2008 read: 63 PHP Number Tips - Part 2: In order to find the future value of a sum of money, given a fixed interest rate, you have to calculate the future value by compounding the sum over periods using the supplied interest rate such as the following:
The formula to calculate the future value (F) of a particular amount (P), given a fixed interest rate ( r ) and a fixed number of years ( n ), is F = P(1 + r/100)n. Nevertheless, you will be surprised how many novice programmers forget all about PHP's operator precedence rule. Then, for the result, they generate incorrect results. |
| | Give Your Opinion | Recommend |
|

