Wages, productivity, and retirement