I have a formula that I'm trying to get to solve the following situation:
If someone has worked for less than 2 years (<730 days), the "destroy on" date should be their hire date plus 3 years (ex. hired on 1/13/2021, destroy on 1/13/2024). If someone has worked for 2 or more years (730+ days), the "destroy on" date should be the termination date plus 1 year (ex. terminated on 6/17/2020, destroy on 6/17/2021).
=IF([+/-2yrs]@row >= 730, DATE([Termination Date]@row + 1, [Termination Date]@row , [Termination Date]@row ), DATE([Hire Date/Rehire Date]@row + 3, [Hire Date/Rehire Date]@row , [Hire Date/Rehire Date]@row ))
My formula keeps on returning an #INVALID DATA TYPE error. Any ideas in what could be causing this, and if it's possible for the formula I'm trying to write to even work?