Hello there,
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:
1 day
1 week
2 weeks
3 weeks
4 weeks
1 month
3 months
1 year
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?