def METHOD_NAME(daytime):
    try:
        day_of_week, time_of_day = daytime.split()
        time_of_day = datetime.strptime(time_of_day.strip(), "%H:%M").time()
        day_to_num = {
            "monday": 0,
            "tuesday": 1,
            "wednesday": 2,
            "thursday": 3,
            "friday": 4,
            "saturday": 5,
            "sunday": 6,
        }
        day_num = day_to_num[day_of_week.lower()]
        current_datetime = datetime.now()
        current_day_num = current_datetime.weekday()
        if current_datetime.time() > time_of_day:
            days_until_scheduled_day = (day_num - current_day_num + 7) % 7
        else:
            days_until_scheduled_day = (day_num - current_day_num) % 7
        scheduled_day = current_datetime.replace(
            hour=time_of_day.hour, minute=time_of_day.minute, second=0, microsecond=0
        ) + timedelta(days=days_until_scheduled_day)
        if scheduled_day < current_datetime:
            scheduled_day += timedelta(days=7)
        return scheduled_day, None
    except Exception as error:
        return None, error