Inflation Rate calculations for purchasing power of $1

At an inflation rate of 9 percent, the purchasing power of $1 would be cut in half in 8.04 years. How long to the nearest year would it take the purchasing power of $1 to be cut in half if the inflation rate were only 4%?