In my form I have the last medical date and the medical frequency (years)

My issue is that the date value seems to be returning the wrong date.
When I click inside the brackets it shows the correct date as seen below.

As soon as I click outside the brackets it shows the wrong date but it does add the correct amount of years, as shown below, and I can't seem to understand why?


Any help on this would be great.