The formula for Hooke's law is simply: f = kX
f = force
k = stiffness
X = distance