The article discusses the dynamic calculation of the elements of the box structure of buildings under the action of seismic effects, taking into account the spatial work of the box elements, given by the displacement of their lower part according to a sinusoidal law. The equations of motion for each of the plate and beam elements of the box structure of the building are constructed based on the Kirchhoff-Love theory. Expressions for the forces, moments, and stresses of the plate elements, which balance the box elements' displacement, the boundary conditions, and the conditions of full contact through displacements and force factors in the contact zones of the plate and beam elements, are compiled. The general solution to the problem is constructed by decomposing the movement of box elements according to their shapes using the finite difference method. The calculation results are shown in graphs for the height of the box of bending moments, plate elements working in bending, and shear stresses of plate elements.