Calculation of heat treatment parameters