Barometer formula