[#924545] Ensure duration is a number so we can do arithmetic with it.