Modify date-picker to add a rule by period option and terms.