Using durationInMinutes (duration was undefined).