greetings

I am building a form to collect beneficiaries informatiion and I have question about the family size and 2 other questions about the Number of Males and Numbers of Femles

the Idea is the Family Size = Number of Males + Number of Females, therefore I build a calculation quetion to calculate this equation and created a note question to show me the result of that calculation questiion wether the family size MATCH the Number of female and number of males of it DOESN’T MATCH

my question is how to build a validation critera for the note question ? so if the formula DOESN’T MATCH the user won’t be able to swipe to the next question