The impact of price variation on the production of crude oil and natural gas