I have been stuck for an hour trying to figure out why this window function is not giving me what I want. Can someone please give me a hand? In case anyone wants some backg