add quote granularity check for different periods