Answer: If the element is in the p block, then the number of the group can be determined by the formula: (number of valence electrons + 10). 3. If the element is in the d block, then the number of the group can be determined by the formula: numberofelectronsin(n−1)dsubshell + (number of electrons in (n) s subshell).