To determine the variance in gross profit ... Companies use comparative analysis like the example above to determine what levels of production, cost, and price yield the greatest profit margin.