the filtering using dates
counted sum of the price