Replace duration with number