The standard procedure for calculating Q begins by cutting a free-body diagram of a portion of the cross section. The cut is made perpendicular to the direction of the shear force. The free-body diagram starts at the point of interest and extends away from the neutral axis.

Here is Canvas object wihch demonstrate the problem.