Added time to calculate the time in minutes