a function that calculates a discount: 10% above 500 PLN, 20% above 1000 PLN, discounts do not stack with promo codes
