added function to calculate real/absolute pressure