When the admin adds/edits the product, you can check the price section.


All you need to do is add value and cost per item. The margin and profit will automatically get calculated.