Sizing of the Panel Boards Main Circuit Breaker
Article 220 has the requirements calculate the load to be serviced by the panel, article 408 has the requirements to protect the panelboard.
408.36 Overcurrent Protection.
In addition to the requirement of 408.30, a panelboard shall be protected by an overcurrent protective device having a rating not greater than that of the panelboard. This overcurrent protective device shall be located within or at any point on the supply side of the panelboard.