profit analysis

You can hit F9 on a document, like a Posted Sales Invoice, to view the Statistics. That will show you your prices, costs, profits, taxes, etc.