Formula For Total Profit