Costs and values in the calculus of voting