Changed buy/sell duration check