If a company has a 45600 in sales and their margins are 50%.
How do I calculate the costs?
I thought the margins were defined as $$ \text{margins} = \frac{\text{profit}}{\text{revenue}} = \frac{\text{revenue}-\text{costs}}{\text{revenue}} $$
So I get $$ \frac{45600-\text{costs}}{45600} = 1 - \frac{\text{costs}}{45600} = 50\% \Leftrightarrow \text{costs} = 45600 - 50\% \cdot 45600 = 22800 $$
But I have also seen people simply saying that if their margins are $50\%$ then their costs are $50\% \cdot \text{revenue}$. Is this exactly the same?
I can see that $22800 = 50\% \cdot 45600$, so it seems to be the same, but it's a little hard for me to understand the concept of margins.