How I can calculate the margin requirement when given in a percentage?

(Price x Quantity) x Margin percentage