How long will it take to earn $252 in interest if $1200 is invested at a 7% annual interest rate?

I = Prt

252 = 1200 * 0.07 * t

252 = 84t

252/84 = t

? = t