The maximum number of electrons in a subshell is given by the expression
Maximum number of electrons in a subshell = (4l + 2)