The exact question is what t makes 1.07ᵗ equal 2, and the answer is ln 2 / ln 1.07, which the workbench prints as 10.244768351059. Put that number back as an exponent — the second link, 1.07^10.244768351059 — and the screen reads 2, which is the only way to check a logarithm without trusting it.
The Rule of 72 replaces the division with 72/7 = 10.2857…, about four-tenths of a percent long, and it is chosen over 69.3 because 72 divides evenly by many small rates. The rule's error is smallest where the interest is small: at 7 % annual compounding it is off by 0.04 periods, at 25 % — where the rule says 2.88 and the logarithms say 3.11 — by more than two tenths of a period, because ln(1 + r) drifts further from the shape 72/r assumes as r grows. Continuous compounding would need ln 2 = 69.3 % instead, which is where the Rule of 69.3 comes from.
Answer
10.244768351059
How to read it
ln(2)/ln(1.07) on the workbench, i.e. exact doubling time for 7 % compounded once per period. 72/7 is 10.2857…, and the difference is the rule's approximation, not an error here.
Source
Solving 1.07ᵗ = 2 by logarithms; tables of doubling time for a given rate of return go back to Luca Pacioli's Summa de arithmetica (1494)
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.