utility method to calculate average time between entries