Sam Monte deposits $21,500 into Legal Bank which pays 6 percent interest that is compounded semiannually. What will Sam have in his account at the end of 6 years?
=P(1+r)twhere P is the principal, r is the rate (over the compounding period, expressed as a decimal), and t is the number of periods to compound over.