Need to add calculation that includes possible leap year based on agreement date
I need to calculate the expiration date based off how many years an agreement is and need the date to end the same date as the agreement date. See columns below. I need to make sure the Option Period Expiration Date is the same month and day and the day seems to be wrong in the formula when there is a leap year and I can't figure out how to do the calculation when there is a leap year. There are sometimes when the year is 2019 and it needs to be 5 years and there are two leap years. How do I do this?
Best Answer
-
You should be able to use this...
=DATE(YEAR([Agreement Date]@row) + [Option Period (Years)]@row, MONTH([Agreement Date]@row), DAY([Agreement Date]@row))
Answers
-
You should be able to use this...
=DATE(YEAR([Agreement Date]@row) + [Option Period (Years)]@row, MONTH([Agreement Date]@row), DAY([Agreement Date]@row))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!