Fixing interval filtering by date