Calculate the error to detect a single head of household

Welcome back to the community, @konanstephanenekoffi! This post discussed previously should help you solve your issue: