If a seller is selling a business for say $10m but has $2m in debt on the balance sheet - can you confirm that the taxable income is $8m and not $10m if the debt is paid at closing?

Thanks