A moving charge makes a magnetic field, and a magnetic field pushes on moving charge. The page computes the field of your solenoid three ways (the long-solenoid formula, the exact finite formula, and a numerical Biot-Savart sum over every turn) and the motion of the rod from F = B I l, and shows how closely they agree.
Choose a law, choose what you want to find, type the numbers you know and press Solve. You get the formula, the substitution and the result with units, then a picture drawn with your numbers. The constant μ0 = 4π × 10⁻⁷ T m/A is filled in for you.
Your browser could not start a 3D context. Try a recent Chrome, Firefox, Safari or Edge with hardware acceleration on.