None of this violates the laws of thermodynamics. These are all quantities that one could measure/estimate/calculate. Once you know the rough quantities then you'll have a more accurate estimate. Perhaps "net calories" of food could become a thing - how much is left after the initial input of energy. Absorption will be a different deal altogether - a factor that you'd need to get measured.