Retirement tax questions

When calculating the employee roth 401 contribution LIMIT, do we need to minus 50% of the self-employment tax or just 100% of the net profit (schedule line 31)? I have another trading business to write off all the self-employment income so I don't have SE tax to pay.