Adding a new Calculate the number of reward points earned feature