In a time series, How can I find the intervals of maximum value. For example in one day data, I have maximum interval from 10:00 to 10:40 and then other interval from 19:00