Thanks, Mark. So the answer about what is a fair "profit" is addressed here:
Secondly we may speak of buying and selling, considered as accidentally tending to the advantage of one party, and to the disadvantage of the other: for instance, when a man has great need of a certain thing, while an other man will suffer if he be without it. On such a case the just price will depend not only on the thing sold, but on the loss which the sale brings on the seller. And thus it will be lawful to sell a thing for more than it is worth in itself, though the price paid be not more than it is worth to the owner. Yet if the one man derive a great advantage by becoming possessed of the other man's property, and the seller be not at a loss through being without that thing, the latter ought not to raise the price, because the advantage accruing to the buyer, is not due to the seller, but to a circuмstance affecting the buyer. Now no man should sell what is not his, though he may charge for the loss he suffers.
So, basically, as I highlighted in bold, a seller is entitled to be compensated for any loss he incurs (including the investment of his time, money, etc.) in transacting the sale, and that is the scenario in which an item maybe sold "for more than it is worth IN ITSELF". Then, what I highlighted in italics is where he rejects price gouging, where it is unjust to raise the price because the buyer has a great need for the product that is not proportionate to the loss incurred by the seller but due to circuмstances affecting the buyer.
Let's look at a micro-economic example. I have plenty of toilet paper but my neighbor runs out. He comes to me asking for it. So, I am entitled to charge him for it what I paid. Also, if now as a result of selling the toilet paper I'll have to make a special run to the store to get some more, I incur the loss of the additional time it would take for me to make the extra trip, for the wear and tear on my car, etc. So it's OK in that case to charge a little more to compensate me for the extra effort and expense on my part. If, however, I have plenty left so that I can wait for my next regularly-scheduled shopping trip, then I incur no loss from the transaction and have no justification for charging more than what I paid for it. But then, hah, I see that the prospective buyer is desperate for toilet paper. I know that if I charge him 3x or even 10x what it's worth, he'll pay it because he's desperate. That is sinful.
So this capitalistic notion of being able to charge as much as you can get away with due to market conditions is in violation of the principles laid down by St. Thomas. It must be proportionate only to the loss incurred by the seller, and not due to circuмstances affecting the buyer.
Extending this out to larger enterprises, the amount of "profit" should be proportionate to the investment made by the seller to develop the product, investment in time and money. So, if I put in 80 hours a week running a company that produces the product, I am entitled to a reasonable compensation for my work. I'm also entitled to recover any money I invested in the product. And the cost of the product includes not only the raw materials but the labor involved in making it. There's also the stress of running a company and the risk incurred, where if I do not succeed I can lose some money on it. It's hard to put a monetary amount on such things, but I can see half a million dollars to about a million dollars per year to be reasonable compensation for all that. But this garbage where a company CEO make $250 million per year, that is gravely immoral. Also, 90% of the time, with big business, there's no personal risk involved that needs to be compensated for. Companies are formed, and these companies take out loans for their investments. If things don't pan out, they declare bankruptcy, and just wipe some electronic numbers from a database, but no individual is incurring a personal financial risk regarding the investment.