The formula to calculate the cost of goods purchased is:
\[ COGP = P - R/A - D + F \]
Where:
Let's say the total amount of purchases (P) is $10,000, the purchase returns or allowances (R/A) are $500, the purchase discounts (D) are $200, and the inbound freight (F) is $300. Using the formula:
\[ COGP = 10000 - 500 - 200 + 300 \]
We get:
\[ COGP = 9600 \]
So, the cost of goods purchased is $9,600.