deemed a sale (revenue). The deductions against the revenue would be whatever expenses are used to generate the widgets (e.g., cost of materials, labor, overhead, etc.). The loan payments are not expenses (though the imputed interest on the loan would be).