calculate2ndStage function

Internal: Second/Third stage of the two-stage approach for second order constructs