The above expenses are used after passing the gross income test to determine benefits.
Self-employment and educational expenses reduce income before the gross income testing. See
Self-employment and
Educational Expenses for allowable expenses and the farming loss deduction.