It won't help you with this one, but here is a tip on water heaters I learned about 20 years ago when I got a tour of a water heater factory.
The water heaters are glass-lined to help with corrosion, but the glass lining is almost always cracked somewhere. The thing that prevents corrosion at the cracks is a sacrificial annode made of either aluminum, or magnesium (with a steel wire in its center for strength) which is screwed into the tank, usually from the top. There is a 3/4" pipe fitting up there, and about a 1-1/8" hex nut. This will be plainly visible on your new water heater.
The way they know the life, is that they know how long the sacrificial annode is going to last.
The way to prolong the life of your water heater is to periodically replace the sacrificial annode. They cost $30-$40, and I replace mine every 5 years, on a 7 year water tank. I put a label on it so I know when I replaced it, and when to do it again. Mine is in a real PITA location, so I have a great incentive to make it last.
Right now I have 20 years on a 7-year water tank and it is still going strong.