formula for profit on a short code example Example: profit formula total revenue – total expenses = profit