how to calculate density of petrol