a tool to calculate the Speed of animation