VCO2 compensation
For this calculation, you need to compensate for the volume of expired CO2. This can be done indirectly using a fixed RQ value.
Alternately, if you have % CO2 (as deflection from ambient, i.e, baselined) or a calculated VCO2 in ml/min, you can compensate directly.