How to calc month and year based on child month

Simple

Put the months in a spinner or anyhow

After selecting the number of months,
Use clock component to format the date and time in which use add months (in the quantity place use the selected number of month)

Eg. Ref here