Cost update and production expenses

I was wondering how to update the product cost
We work on manufacturing
At the end of each month we get the actual production expenses
We would like to add it to every product produced during this month
Is there a suggestion to deal with this?