Everything sizes from the opening
Cabinet fronts are derived, not guessed. Overlay doors cover the opening plus the overlay amount on every side; inset doors fit inside it minus a small gap, commonly 1/16 in. Enter the style, the opening, the margin and whether the opening takes a single door or a pair and the calculator returns each door's size plus a drawer box for the same opening.
Pairs share a center reveal
Two doors meeting in the middle need a gap so they do not strike each other; the calculator splits the width evenly around the center reveal. Inset pairs use the same gap as the perimeter, overlay pairs a typical 1/8 in.
Drawer boxes follow the slides
Box width is the opening minus the clearance each slide needs, commonly 1/2 in per side for standard ball-bearing slides; undermounts and side mounts differ, so check the slide spec sheet. Box height leaves about 3/4 in of running room. Depth follows the cabinet, not the opening.