How to calculate a K-1 basis when selling

Per the internet / accounting firm notes:

 

Just like other partnerships, the basis of the investment in the PTP

is adjusted each year by income, deductions, and distributions.

 

TIA,

 

Tom