Change duration to a number.