def get_window_size(data_size, percentage=0.10):
    """ To get size of window based on required percentage. """
    result = None
    part = data_size * percentage
    if part < 1:
        result = 1
    else:
        result = int(part)
    return result