def get_max_day(year: int, month: int): result = 30 if month in (1, 3, 5, 7, 8, 10, 12): result = 31 elif month == 2: if year % 4 == 0: result = 29 else: result = 28 return result