Formula for gain/loss on asset sale

Does any one remember the formulae for finding the sale price / book value etc etc Given different pieces of Dep and PPE values as well as loss and gain? Some how i am not able to locate them in I and II curriculum…

Net PPE End = Net PPE Begin + Purchases - Depreciation - Sales. Plug and chug.