Let's say XYZ Company generated $1 million in revenue and had a net profit of $200,000 in a particular year. By applying the profit margin formula, we find that the profit margin is 20% (($200,000 / $1,000,000) * 100). This means that XYZ Company's profit represents 20% of its total revenue.