Investors & landlords

Can someone please confirm my understanding of Excess Basis of Replacement Property that Turbo Tax is asking for?

Excess Basis = Cost of Replacement Property  - Adjusted basis of Relinquished Property

 

Cost of Replacement Property = proceeds from sale relinquished property  used to purchase replacement property + any additional cash towards purchase of Replacement property + mortgage on Replacement Property

 

Thank you!