Restrict a response based on a question asked previously?

In a question I am asking that what is your age and in the next question I am asking that how many years you have been married and I want to restrict the answer of married years by subtracting 15 from the current age, it is possible to put logic for this

Do you mean you wish to restrict a marriage question to those who are greater than 15 years?

No, I want to restrict marriage question like (current age-15).Suppose I asked what is your age and response is 25 then number of year been married should not be more than (25-15).i.e. 10.
I want this restriction,will it be possible.

@impact, this post discussed previously should help you solve your issue: