SEP IRA and 401K contribution household wage criteria?

Is there any limit based on the household income to contribute to SEP IRA(Sole Prop.) , Spouse 401 K(18K), Different employer 401k (18K) during the same year?Scenario: Sole Prop Profit 80K, W2 Self income 60K, W2 spouse Income 90 K. Maximize deduction goal= (80/ 4)=20k+18K+18K