Marginal benefits and costs of purchasing a house