compute the maximum force of a spring