def METHOD_NAME(value):
    """Convert value from string to numeric, including sunday+m,n."""
    if isinstance(value, int):
        value_num = value
    elif value.startswith("sunday+"):
        # Check that the number proceeding sunday+ has length of 1
        assert value[8] == ","
        # Value_num calculates the number of days between today and the
        # Update day, if both days of the week are the same,
        # Expected lag is 0
        value_num = (date.today().isoweekday() - int(value[7:8])) % 7
        # Add on expected lag to lag from weekdays
        value_num += int(value[9:])
    else:
        value_num = int(value)
    return value_num