Least Cost Formulation: Turning Mathematics into Money