def TTD_TT_UB_rule(M, i, j, w, t):
    """
    Every day of every week for each (window, ttype), there can
    be no more people scheduled (TourTypeDay) than
    number of people assigned to TourType[window, ttype].

    :param M: Model
    :param i: window
    :param j: day
    :param w: week
    :param t: tour type
    :return: Constraint rule
    """
    return M.TourTypeDay[i, t, j, w] <= M.TourType[i, t]