How to show I sold a rental property and invested the capital gains in buying a coach home (which serves as my principal residence and has a legal rental unit attached)?

The capital gains were $160K and the purchase value of the legal rental portion of the coach house is $450K. Hence I am hoping I don't have to pay any capital gains taxes for 2022. Am I correct in my understanding and if so, how do I report this transaction in the Intuit Turbotax software?