find the least number of complete years in which a sum of money put out at 50 % compound interest will be more than double of itself ?
import math
n0 = 50.0
t0 = n0 / 100.0
t1 = math.log(max(1e-5, 2.0), 2)
t2 = t0 + 1.0
t3 = math.log(max(1e-5, t2), 2)
t4 = t1 / t3
t5 = t4 + 1.0
answer = math.floor(t5)
print(answer)