calculating metal oand ide emissions from machinging