change swing speed cal

change swing speed calculation