Batch costing involves calculating the total cost of producing a batch of units, such as tablets, which includes the costs of raw materials, labor, direct expenses, and overheads. The economic batch quantity is the optimum batch size, as producing units in batches of this size will result in the minimum total cost of production. The formula for calculating the economic batch quantity takes into account the annual units demanded, setup cost per batch, and carrying cost per unit.