@staticmethod
def get_outlet_temperature(T_pinch, T_limit, iscooling):
    """
        Return outlet temperature of the utility in a counter current heat exchanger

        Parameters
        ----------
        T_pinch : float
                  Pinch temperature of utility stream [K].
        iscooling : bool
                  True if utility is loosing energy.

        """
    if iscooling:
        return T_limit if T_limit and T_limit < T_pinch else T_pinch
    else:
        return T_limit if T_limit and T_limit > T_pinch else T_pinch
