sway analysis - get distance of sway