def vat_checksum(number: str) -> int:
    """
    Calculate the check digit for romanian VAT numbers.
    """
    weights = (7, 5, 3, 2, 1, 7, 5, 3, 2)
    number = (9 - len(number)) * "0" + number
    check = 10 * sum(w * int(n) for w, n in zip(weights, number))
    return check % 11 % 10

    Calculate the check digit for romanian VAT numbers.
    
faker/providers/ssn/ro_RO/__init__.py