$product['total'] - ($product['total'] - $discount) = $product['total'] - $product['total'] + $discount = $discount