Like Kind Exchange Question

For some reason, Rogers and Wiley don't really cover like kind exchanges where you assume a mortgage that is greater than the one that you give up. If this happens, you would not include the amount in the gain calculation, correct? And is the basis calculation still: A/B of old +liabilities assumed +gain recognized -liabilities on old -cash/boot received