How to calculate the closing price of crude oil with the past details