Set a maximum and minimum time according to the soil moisture percentiles time series