return duration as int