The rule of thumb is generally:

If the car bounces more than 1.5 times after a bump, the shocks or struts need to be replaced. Shocks and struts are there to dampen the motion of the springs, so you don't make yourself sick after hitting a bump.