Add function to get the duration in minutes