Modify to adjust from-to date by term selection when it have a custom date ranges.