Mathematically (and in simplest terms):

profit = revenue - costs