def _calculate_T(self, H):
<EOL>x = list()<EOL>x.append(self._T)<EOL>x.append(self._T + <NUM_LIT>)<EOL>y = list()<EOL>y.append(self._calculate_H(x[<NUM_LIT:0>]) - H)<EOL>y.append(self._calculate_H(x[<NUM_LIT:1>]) - H)<EOL>for i in range(<NUM_LIT:2>, <NUM_LIT:50>):<EOL><INDENT>x.append(x[i-<NUM_LIT:1>] - y[i-<NUM_LIT:1>]*((x[i-<NUM_LIT:1>] - x[i-<NUM_LIT:2>])/(y[i-<NUM_LIT:1>] - y[i-<NUM_LIT:2>])))<EOL>y.append(self._calculate_H(x[i]) - H)<EOL>if abs(y[i-<NUM_LIT:1>]) < <NUM_LIT>:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return x[len(x) - <NUM_LIT:1>]<EOL>
Calculate the temperature of the package given the specified
enthalpy using a secant algorithm.

:param H: Enthalpy. [kWh]

:returns: Temperature. [°C]