This money will be subtracted from the amount Venezuela owes the companies for taking over their majority stakes in oil fields and refining plants .