How an anniversary date is calculated
An anniversary calculator measures the time between a starting date and today, then projects forward to your next yearly milestone.
It first counts the number of complete years that have passed, only adding a year once the same month and day have come around again.
It then breaks the leftover time into months and days, borrowing from the larger units the way an age calculation does, so the result reads as a natural "X years, Y months, Z days." Finally it finds the next occurrence of your original month and day, either later this year or in the following year, and counts the days remaining.
This combination of elapsed time and countdown is what makes anniversaries easy to track at a glance.