Compounding at 7% for t years multiplies the money by 1.07^t, so doubling means solving 1.07^t = 2. Take logs and t = ln(2)/ln(1.07), which the workbench prints as 10.244768351059. Raise 1.07 to that exponent and the screen returns 2 — the check that the logarithm did its job.
The rule of 72 says divide 72 by the percentage, so 72/7. Type it as a fraction and the display will not round it for you: the answer stays the exact fraction 72/7, worth about 10.29. The shortcut is four hundredths of a year optimistic at 7%, and it drifts as rates leave the range where ln(1 + r) behaves like r.
Answer
10.244768351059
How to read it
ln(2)/ln(1.07), in years, on a 14-digit display. The 72/7 shortcut is left as the exact fraction 72/7 rather than a decimal.
Source
Luca Pacioli's Summa de arithmetica (1494) gives the doubling rule and notes that no complete treatment was then known; the logarithmic solution is standard mathematics of finance
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.