Deductions & credits

I did pay $2000 dollars in Self-Employment Tax and received a deduction of $1000.

So I must get the $4000 net income from the two Schedule Cs + $2000 Self-Employment Tax to equal =$6000 earned income.  Thus a $6000 Roth contribution.  I don't think that's correct but I can't see the calculation TT is making because there is no Form 5329.