The Users That Are Eligible for Discount
Keep only purchases inside the interval, total each user, and list users who meet both the count and the total thresholds.
Keep only purchases inside the interval, total each user, and list users who meet both the count and the total thresholds.