The Calculus of Coalitions