Started on new discount algorithm