def create_win_filename(win, filebase, ext):
    """Create filename for given window."""
    postfix = '_win'
    for win_min in win[0]:
        postfix += '-' + str(win_min)

    postfix += '-'
    for win_max in win[1]:
        postfix += '-' + str(win_max)

    filename = filebase + postfix + ext

    return filename