Counting cost of customer loyalty