The formula for continuously compounded interest is
A = Pe^(rt)
where:
A = final amount, after 't' years
P = principal (starting) amount
r = interest rate
t = time, in years
So plug in some numbers. Let's say you start with $1,000, and you want to quadruple that into $4,000.
4000 = 1000e^(0.05t)
Now solve for t:
4 = e^(0.05t)
ln(4) = ln(e^(0.05t))
ln(4) = 0.05t
ln(4)/0.05 = t
27.725 = t
So, it would take almost 27 years and 9 months.