What you are kind of building up is a look-up-table for a set of withdrawal dates, which are themselves little look-up-tables.
A look-up-table is represented in PDF/Acrobat as a (multidimensional) array. So, that's what we have to deal with. Not that difficult, but you may have to concentrate when developing it, and you may need to make notes. Chances to get confused do exist…
The first thing to look at would be the withdrawal date tables. You have the beginning dates of various periods. You can convert them to "days since a reference date", which is provided by the Date object (milliseconds since a reference date, which you may divide by milliseconds per day to get smaller numbers). These numbers and the values for z form value pairs, and the whole set of these pairs can be looked at as an array.
First Term and Term can also be represented as parts of an array, and on the form you might use checkboxes or combo boxes where the return values correspond to the index number of the selection in the array.
The first dimension would be First Term, the second dimension would be Term. The value of the element [First Term][Term] would either be an index number of the z-look-up-tables or the tables themselves.
And then you can look up what you need.
Thanks Max for your response.
Not sure how to begin because I do not know how to write scripts although some people have provided scripts for me, but nothing this complex.
I will read it and see what it is.
Thank you again!