investment analysis of home purchase