Calculation and logic validation

Hello experts!
may you help me please? I have this extract:

  1. How many people currently live in this Household? ______ Total members in the household.
  2. How many of the MALE?
  3. How many are FEMALE?

I’m facing difficulties in calculating and doing a validation. I need to compare the value of question 1 with the sum of questions 2 and 3. the number entered in question 1 must equal the sum of 2+3.

Welcome @stelio,
You may always give the search function of this forum a chance, please, e.g. https://community.kobotoolbox.org/search?context=topic&context_id=33461&q=total%20male%20female&skip_context=true

Thanks @wroos
I don’t know if I did it correctly…

@stelio, this post discussed previously should help you solve your issue: