Prime cost - It includes all the direct cost.
Factory cost- It comprises of prime cost and factory overheads.
Office cost- It summates factory cost and office overheads.
Total cost or cost of sales = It is the sum total of selling and distribution overheads and cost of production.