import calendar


def last_day_of_month(year, month):
    """ Return the last day of a month. It is also necessary to provide a year.

    :param int year:
    :param int month:
    :return: The last day of month
    :rtype: int
    """
    return calendar.monthrange(year, month)[1]