Nailing two box beams

The top 2x8 board is the part of the cross section that is connected by nails to the rest of the box beam.
(The bottom 2x8 would be addressed separately in a similar calculation.)

For the top 2x8 board, Q is found by multiplying the area of the board by the distance from the centroid of the board to the centroid of the box:

The moment of inertia I for the box shape is computed from: