How many maximum number of electrons that can be accommodated in a principle energy shell?

The maximum number of electrons that can be accommodated in a principal energy shell is given by ${{2n}^{2}}$; where ‘n’ is the number of energy shells.