How to calculate annealing temperature