You should be studying the formulas for compound interest if you are given this sort of problem. It isn't something students usually can derive on their own. When the interest in compounded continuously, than the number "e" comes into play and the formula for calculating the total value after t-time is:

Look familiar?