Since 1995 , Karachaganak has been controlled by foreign companies under a production-sharing agreement ( PSA ) that gives the companies a licence to extract oil and gas and sets a formula under which profits from oil sales are shared between the company and the Government .