A model of one algorithm to compute occupancy from CO2