Issues with request Parameter with new obsolete definition

I am using the new obsolete definition with v9.2, I  have a requirement to display request parameter 'valid until' whose maximum value can be 'valid from' + 7 days. 

can someone assist me with the valuation script that can be used in this case.