critical temperature calculations​