Screw Mechanism

The mechanism consists of 2 movable links, 2 screw joints and 1 prismatic joint.
In 1 rev of the blue crank:
The nut’s displacement s = (h1-h2).
h1: pitch of the screw joint of the blue screw and the base.
h2: pitch of the screw joint of the blue screw and the green nut.
h1, h2 carry negative sign in case of left-handed thread and vice-versa.
For this case, h1 = -2 and h2 = 3 so s = -5.
Wanted s values can be obtained by combination of appropriate h1, h2 and the thread direction.