The economic benefits and costs of retraining