We can even separate out the d squared already at that point, so the net force is equal to the pressure of the bottom minus the pressure of the top, or the difference in pressure times the surface area of either the top or the bottom or really any of the sides of the cube. 