How does a Qualifying Criteria apply a discount for a Sum of Amounts processing function?