It seems the issue with your formula arises from how the YEARFRAC function works. It calculates the fractional difference in years between two dates, and you’re only considering the decimal part (the months) without accounting for the full year difference. To fix this, you’ll need to calculate both the year and month difference separately.
This formula calculates the total difference in months by multiplying the difference in years by 12 and then adding the difference in months. This way, it correctly takes the year into account.
For more detailed information and an easy-to-use tool to calculate the number of months or days between two dates, you can visit my website at days from today