def METHOD_NAME(suffix: str) -> int:
    """Compute the offset corresponding to the given alphabetical suffix.
    >>> suffix_offset("")
    0
    >>> suffix_offset("A")
    1
    >>> suffix_offset("AA")
    2
    >>> suffix_offset("AZ")
    25
    >>> suffix_offset("BA")
    27
    >>> suffix_offset("ZZ")
    600
    """
    length = len(suffix)
    if length == 0:
        return 0
    if length > 2:
        msg = (
            "Invalid input value:"
            " the suffix must be comprised of at most 2 letters"
        )
        raise RuntimeError(msg)
    if any(c not in charset for c in suffix):
        msg = f"Invalid input value: each letter must be in {charset}"
        raise RuntimeError(msg)
    count = 25 * charset.index(suffix[0]) + 1
    if length == 2:
        count += charset.index(suffix[1]) + 1
    return count