Cellular respiration formula with states