Understanding customer contribution to margin