# Counting the Number of Individual in a household

Hello I need help with programming of the following set of questions

“HB06. How many people currently reside in your household, including yourself?
HB07. How many Boys aged 17 years and below live in this household?
HB08. How many girls aged 17 years and below live in this household?
HB09. How many girls and boys aged 17 years and below live in this household?
HB10. Number of adult males (18 and above) living in the household
HB11. Number of adult females (18 and above) living in the household
HB12.Total number of adult females and males (18 and above) living in the household
HB13. Number of individuals outside this household that you support”

From other similar topics i came across the following formular “.>=0 and .<=\${HB06}
.>=0 and .<=\${HB06} and .<= (\${HB06} - \${HB07})
.>=0 and .<=\${HB06} and .<= (\${HB06} - \${HB07} - \${HB08})
.>=0 and .<=\${HB06} and .<= (\${HB06} - \${HB07} - \${HB08} - \${HB09})
.>=0 and .<=\${HB06} and .<= (\${HB06} - \${HB07} - \${HB08} - \${HB09} - \${HB10})
.>=0 and .<=\${HB06} and .<= (\${HB06} - \${HB07} - \${HB08} - \${HB09} - \${HB10} - \${HB11})”

However because of questions HB09 and HB12 the above formular did not work. How can i go about this issue?