Basis Length Mortg HOA Profit Bought 350000 Month 60 2500 250 Sold 570000 Down 0 Year 5 150000 15000 Gain 220000 Balance 320000 Cost 135000 "Mortg Expnse" 120000 Return 1.62962963
Mortgage expense = 5 years Mortgage - (Bought - Balance)
Cost = Mortgage Expense + HOA fees for 5 years
Return = Gain / Cost
The trick is not to double count principal paydown of $30000.