Question: What would a compound interest formula look like coded in PHP? The Compound Interest Formula is: = (1 + ) Where P = principal amount
What would a compound interest formula look like coded in PHP?
The Compound Interest Formula is: = (1 + )
Where P = principal amount (the initial amount you borrow or deposit) r = annual rate of interest (as a decimal) t = number of years the amount is deposited or borrowed for. A = amount of money accumulated after n years, including interest. n = number of times the interest is compounded per year
Example: An amount of $1,500.00 is deposited in a bank paying an annual interest rate of 4.3%, compounded quarterly. What is the balance after 6 years?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
