Acetic acid and NH4OH are weak acid (WA) and weak base (WB) respectively. When they combine a salt of WA and WB i.e., ammonium acetate is formed. So by using hydrolysis equation for salts of WA and WB , pH=21(pKw+pKa−pKb) =21(14+4.76−4.75) =7+0.005=7.005 .