<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_day_by_offset(year, month, offset):
 """Get the month day based on date and offset :param year: date year :type year: int :param month: date month :type month: int :param offset: offset in day to compute (usually negative) :type offset: int :return: day number in the month :rtype: int 31 """

    (_, days_in_month) = calendar.monthrange(year, month)
    if offset >= 0:
        return min(offset, days_in_month)

    return max(1, days_in_month + offset + 1)