If you want to do get it right, then use a computer program that specializes in 2nd order analysis. Unless your structure is so simple that you can use a some theoretically derived solution. See AISC 13th or 14th edition commentary or Chen & Lui, Structural Stability: Theory and Implementation (1987).
If you're looking for an approximate hand calculation, then use either the B1-B2 method described in AISC, or the Theta method described in ASCE-7.
The theta method is the one I usually use:
Secondary Moment = P*Delta_0
where P = axial force in the frame and Delta is the 1st order deflection of the frame.
Apply this moment to your structure using a secondary shear
Secondary shear = P*Delta_0 / H
where H is the height of the frame.
Theta is the ratio of the secondary sehar to the origial story shear, Vo.
Theta = P*Delta_o / (H*Vo)
Your incremental deflection will then be Delta_o*Theta. This additional deflection would result in additional P-Delta mometn. The limit of the infinite series becomes:
Delta_total = Delta_o / (1-Theta)