You can also treat it as a sequence and series problem, with the profit in the first year being

and the common ratio being

so that you have a sequence of profits in successive years of

And you seek year

, being the smallest value of

satisfying the equation

... So, in year 24 or after 23 full years.