Dynamic incentives and retirement