Calculation of TL. (thanks to Stefan! =))