dates bucket to intervals