time period of vertical spring mass system formula