=DATE(YEAR(B7),MONTH(B7)-((YEAR(B5)-YEAR(B3))*12+MONTH(B5)-MONTH(B3)),DAY(B7)+729)
which if convert the cell ranges to my fields in the Powerapp looks like
DateAdd(DateAdd(Year(ReConDate),Month(ReConDate)-((Year(ConfDate.SelectedDate)-Year(AccDate.SelectedDate))*12+Month(ConfDate.SelectedDate)-Month(AccDate.SelectedDate)),Day(ReConDate)+729)DateAdd(DateAdd(Year(ReConDate),Month(ReConDate)-((Year(ConfDate.SelectedDate)-Year(AccDate.SelectedDate))*12+Month(ConfDate.SelectedDate)-Month(AccDate.SelectedDate)),Day(ReConDate)+729)
but this won't work, not that i expected it to
So looking for a way to achieve the same result. Basically the formula should
Add 2 years to the ReConDate and minus the difference between AccDate and ConfDate
for example:-
AccDate=01/10/20
ConfDate=01/01/2021
Difference = 3 months
ReconDate = 01/08/2021
Add 2 years = 01/08/2023
minus Difference = 30/04/20
Many thanks in advance. I have all the other dates and fields working as expected