Calculating net force and acceleration