Gross margin less the costs the customer's own behaviour causes: rebates, delivery, order handling, sales time, returns and credit.
Customer contribution is gross margin minus cost to serve. It includes everything that would change if the customer changed how they buy, or left, and nothing that would not. It is the level to manage customers on, in currency rather than percent. Allocating fixed overhead below it adds no information and invites dropping customers who are paying toward costs that would remain. See gross margin versus contribution versus net margin.
Gross margin minus rebates and the costs driven by the customer's behaviour, each allocated by an activity driver: drops, order lines, visits, returns and days beyond terms.
A customer with $22,500 of gross margin takes 250 drops at $38, 2,400 keyed lines at $1.90 and 12 visits at $85. Contribution is $7,420.
Costs allocated by revenue, which gives every customer the same percentage and shows nothing.