Michael, you have posted a simple question that is rather complex for this forum.
I would suggest that you research the following topic:
Calculation of Oxygen Uptake and Carbon Dioxide Production.
FYI there factors that have to be considered other than oxygen consumed post exercise.
Hope this gives you some direction.