I am having trouble converting it into code. I want to split date range into multiple ranges based on priority matrix.
Here\'s a picture to better help explain my ide