def get_multiplier(factor):
    """
    Convert the factor into a number.

    :param factor: the string 'mb', 'm', or 'k'
    :return: 10000000, 1000000, 1000 or 1
    """
    if factor.lower() == 'mb':
        return 10000000
    elif factor.lower() == 'm':
        return 1000000
    elif factor.lower() == 'k':
        return 1000

    return 1