Consider a free-body diagram of the wood flange.

Shear flow in bolted box beam

The bolt cross-sectional area is:

The bolt acts in double shear; therefore, the bolt area subjected to shear stress is:

and thus the average shear stress in each bolt is: