Indeed - which is the argument for point-of-extraction carbon pricing. Then you don't have to calculate anything, it gets sorted out along the supply chain by individual decisions as to whether the CO2 cost is worth it compared to the available alternatives at that step.