Adding util function for calculating duration in minutes