Counting the exceeding limit of cup of tea & coffee

Hi All, Requirement is such that for user we are restricting to order 4 cups of tea or coffee. if user ordered more than 4 cups then i am showing message that its exceeding the limit. I am able to show the exceeding count for current day for like  ( (TeaOrdered + CoffeeOrdered) – 4)   but how can i get this exceeding count for all days.  
1 answers

Hi Prajakta,

In this case I would use another attribute, where you keep track of the total exceeding of the limit. Whenever a users orders a tea or coffee and is exceeding the limit you change this attribute to original value + 1.  This attribute is then not reset for every day so you can keep track of it over time.

Hope this helps!