Purchase price = sale price - costs - profit - contigency
Always shoot at the highest end for cost, allow for lowest end on sale price, have decent sized contigency and don't enter if your profit isn't worth the time/risk
My suggestion would be if possible have a mentor assist.