This is because the interest is annually, this means that every year the interest is given over wat you already had + what you earned in interest. The growth factor is 1.03 (or 3%) and X is after how many years. You started with 500 and this grows with factor:
If you have a credit card with a 24% APR, that's the rate you're charged over 12 months, which comes out to 2% per month. Since months vary in length, credit cards break down APR even further into a daily periodic rate (DPR). It's the APR divided by 365, which would be 0.065% per day for a card with 24% APR. Hope this helps. :D