@staticmethod
def digits_to_number(str):
    """
        1.5k; 1,200; 500+; 20k
        """
    if not str:
        return 0
    str = str.replace('+', '').replace(',', '').lower()
    ex = 1
    for k, e in {'k': 1000.0, 'm': 1000000.0, 'b': 1000000000.0}.items():
        if str.endswith(k):
            str = str[:-1]
            ex = e
            break
    return int(float(str) * ex)
