The theory which follows is entirely based on a calculus of pleasure and pain; and the object of economics is to maximize happiness by purchasing pleasure, as it were, at the lowest cost of pain.