Code confusion sparks water heater dispute

Is 18 inches really 18 inches?