Investors & landlords

Yes, thank you. Because this is an installment loan, how does TT know how to tax each installment amount?  I know TT takes the gross profit divided by the sale price to determine a percentage to apply to the installment amount, but how does TT know how much should be taxed as ordinary income vs capital gain?  Thanks for all your help/clarification.