P/P0 = (1+r)t with t in years for yearly compounding
Generalized equation for compounding in n pieces of the year:
P/P0 =(1+r/n)nt
Now solving generally for the doubling time in years:
2 = (1+r/n)nt
ln2 = ntln(1+r/n)
t = ln2/(nln(1+r/n))
For continuous:
P/P0 = ert so
ln2 = -rt
t = ln2/r
Please consider a tutor. Take care.