To calculate the maximum acceleration of a mass attached to a vertical spring, the formula a_max = v_max * ω is used, where ω is derived from the spring constant k and mass m. The discussion highlights that the net forces at the top and bottom of the oscillation differ due to the gravitational force acting on the mass, leading to different accelerations at these points. At equilibrium, the spring force balances the weight of the mass, but this balance changes when the mass is displaced. The confusion arises from the assumption that accelerations at the extremes are the same, which is incorrect for vertical systems. Understanding that the spring force varies with displacement is crucial for solving the problem accurately.