Fix profit calculations