mass and temperature formula