Improved the timeSliceTier method to work with a time interval