Please help..

A cup of coffee contains 100 mg of caffeine, which leaves the body at a continuous rate of 17% per hour.

a.)Write a formula for the amount of , A mg, of caffeine in the body t hours after drinking a cup of coffee.

How do i handle these type of problems?? what are the variations of this type of problem? Ex.. Half life , double half life..