I have a form where the user can select a start date and the period of a contract. To make it easy for the user they can choose in a dropdown:
2 years, etc.
How can I calculate the end date from these values? I can work with options and then create an attribute for the number of days. But a month is not always 31 days and a year is not always 365 days. What to do here?