Torque is calculated as force*distance, the distance being the length of a line which is perpendicular to the line of action of the force, and passes through the pivot point.
In the first case, since weight acts downwards, and the crank is horizontal, the crank is perpendicular to the line of...