function to get time cuts