How to make a python counter that indicates the time remaining until the end of a for loop?

I'm doing a script that generates word lists for brute force attacks. It works. However, when the word list is too big, it takes time for the program to close and I do not know when it will end. indicates when the for loop will finish making all possible combinations.

My code (I'm still learning python, so do not call too much for a badly organized code):

import argparse
import itertools

parser = argparse.ArgumentParser (description = "Generator of word lists for brute force attacks.")
parser.add_argument (- characters, - "characters", help = "characters to be inserted.")
parser.add_argument (- min, - - minimum, type = int, default = 1, help = "minimum word width.")
parser.add_argument (- max, -> maximum, type = int, default = 2, help = "maximum word width.")
parser.add_argument (& # 39; - out & # 39; - & # 39; - output & # 39; default = None, help = & # 39; where the word list will be saved. & # 39;)

args = parser.parse_args ()
def generateWordlist (characters, min, max, output):
word list = open (exit, & w;)
for n in the range (min, max):
for xs in itertools.product (floats, repeat = n):
chrs = & # 39; .join (xs)
wordlist.write (% s  n & # 39;% chrs)
list of words.close ()
generateWordlist (args.characters, args.minimum, args.maximum, args.output)