def percentage(sub, all):
    """Calculate percent relation between "sub" and "all".

    Args:
        sub (int): Some value.
        all (int): Maximum value.

    Returns:
        int: (sum * 100) / all

    """

    return int((sub * 100) / all)