https://topmagazines.info/improving-double-hung-window-function/
Improving Double-Hung Window Function