interest_on_mortgage+insurance+taxes+maintenance-raise_in_house_valuation no?
If your formula was the one, renting would never make any sense...