def get_percentage(position: int, length: int) ->str:
    """Format completion percentage in square brackets."""
    percentage_message = f'{position * 100 // length}%'.rjust(4)
    return f'[{percentage_message}]'
