The payroll factor is a fraction, the numerator of which is the total amount paid in this state during the tax period by the taxpayer for compensation and the denominator of which is the total compensation paid everywhere during the tax period.
N.D.C.C. § 57-38.1-13