Check this link: http://math.about.com/library/weekly/aa042002a.htm

This is how it looks like:
Code:
amount=principal*((1+rate)^year)