The formula to calculate the Ending Inventory is:
\[ \text{Ending Inventory} = (BI + NP) - CG \]
Where:
An ending inventory is defined as the total value of an inventory of goods after a certain time period of sales.
Let's assume the following values:
Using the formula to calculate the ending inventory:
\[ \text{Ending Inventory} = (5000 + 2000) - 3000 = 4000 \]
The ending inventory is $4000.