Rework cost_and_subsidy logic