the underlying formula that you want to use to solve here is
A = P(1 + r/n)^(nt)
for this situation that means first solving for t algebraically and then plugging in the given values
t = ln(A/P) / (n * ln(1 + r/n))
t = ln(1.6667) / 12*ln(1.00267)
t = 0.5108 / 0.0320 = 15.96
meaning that it takes approximately 16 years for the principal amount to reach $1,000