calculate manufacturing profit margins