discountTotal = 0
lineItemTotal = 0
shippingTotal = 0
taxTotal = 0

# Pierwsza iteracja PĘTLI FOR:
lineItemTotal = 0 + (50 * 1) = 50
shippingTotal = 0 + (10 * 1) = 10

# Druga iteracja PĘTLI FOR:
lineItemTotal = 50 + (100 * 2) = 250
shippingTotal = 10 + (20 * 2) = 50

# discountTotal jest obliczane, ponieważ discountCode równa się "20PERCENT":
discountTotal = 250 * 0.2 = 50

# taxTotal jest obliczane, ponieważ customer.shiptoState równa się "CA":
taxTotal = (250 - 50) * 0.08 = 16

total = 250 - 50 + 50 + 16 = 266
