def Q_distcooler(P_mass, Cp, t_coolwater_exit, tp):
    """
    Calculates the heat load of distilliat cooler.
    Parameters
    ----------
    W_mass : float
        The mass flow rate of distilliat, [kg/s]
    Cp : float
        The heat capacity of distilliat, [J/(kg * degrees C)]
    t_coolwater_exit: float
        The end temperature of cool distilliat, [degrees C]
    tp : float
        The temperature of boiling distilliat, [degrees celcium]
    Returns
    -------
    Q_distcooler : float
        The heat load of distilliat cooler, [W] , [J/s]
    References
    ----------
    Дытнерский, формула 2.2, стр.45
    """   
    return P_mass * Cp * (tp - t_coolwater_exit)