• sum(p.price * i.quantity): Compute price × quantity, and sum up by customer.