Measurement and calculation of oil storage in oil tank