When a casino calculates the cashback amount, it considers how much the customer has lost and his loyalty program level.