Torque from a Force at an Angle
Only the component of a force perpendicular to the lever arm produces torque, so the angle matters.
The torque is T = F·r·sin θ. where F is the force, r the lever-arm length and θ the angle between them.
Take the perpendicular component times the arm.
Results
Torque is greatest when the force is perpendicular (θ = 90°) and zero when it points along the arm. This is why you push a wrench at right angles.