You need a couple more numbers to work out how quickly the transition will happen, but it's three decades max, not more, before *all* cars are electric, and will take much less time than that to get to 50%. The UK buys about 2m new cars a year. Your vehicles figure is too broad, we are talking about cars only here, of which are there are 34.5m. About 2m of those are EVs. So, 32.5m/(2m*2) means a minimum 8 year transition for the remaining fleet to go 50% electric, but of course, we are nowhere near 100% of all new cars being EVs yet, more like 30%. So add in another decade for that ramp up, although I suspect it will go faster through S-curve and network effects, and you get to 16 years or so to get to 50% adoption, ie EVs outnumbering ICE.
The average age of a gas or diesel car on the road in the UK is 10 years, which means there are plenty of them much older than that. Every ICE car sold extends the clock out an average of a decade. The average age has also been increasing over time as the cost of new cars and reliability goes up. My oldest car is 27 years old, and my newest is 15. One thing that can change the dynamic is if new cars become so cheap we treat them like disposable appliances. Who wouldn't prefer to get the latest shiny toy? But would disposable cars be a good development for the environment?