def METHOD_NAME(self, s):
    n = int(s[0:-1])
    unit = s[-1]
    if unit == 'k' or unit == 'K':
        return n
    elif unit == 'M':
        return n * 1024
    elif unit == 'G':
        return n * 1024 * 1024
    elif unit == 'T':
        return n * 1024 * 1024 * 1204
    elif unit == 'P':
        return n * 1024 * 1024 * 1204 * 1024