window is options - defaults to `timedelta(days=1)`