evaluates discount at a class level