Code for Metabolic Economics calculations