def readable_to_kb(raw_value):
    """
    Convert readable value to integer in kb
    :param raw_value: string
    :return: int
    """
    # from math import ceil
    value_in_kb = 0
    if raw_value.find('KB') != -1:
        value_in_kb = int(raw_value.replace('KB', ''))
    elif raw_value.find('MB') != -1:
        value_in_kb = int(raw_value.replace('MB', '')) * 1024
    elif raw_value.find('GB') != -1:
        value_in_kb = int(raw_value.replace('GB', '')) * 1024 * 1024
    return value_in_kb