implemented monthly dates window calculation