If you invest $\$1500$ at $7\%$ compounded annually, how many years would it take for your investment to grow to $3750$?
Is this right?
$$\text{term } = \frac{\log( \text{overall gain factor})}{ \log (\text{annual gain} ) }= \frac{ \log (3750/1500)}{ \log (1 + .07) }= \frac{\log (2.38)}{ \log (1.07) }= 12.816\text{ years}$$
When one does mathematics, it can be useful to go back to basic principles.
With interest rate of $0.07$, that is, $7\%$, compounded annually, in $n$ years $A$ dollars grow to $$A(1.07)^n$$ dollars. In our case, $1500$ grew to $3750$ in an unknown number $n$ of years, so $$3750=1500(1.07)^n.$$ It follows that $$(1.07)^n=\frac{3750}{1500}=2.5.$$ Take the logarithm of both sides, using your favourite base. We get $$n\log(1.07)=\log(2.5),$$ and therefore $$n=\frac{\log(2.5)}{\log(1.07)}.$$
Remark: Your procedure was correct. There was a little numerical slip in calculating $\frac{3750}{1500}$.