# OEE calculations with Node-Red

**URL:** <https://discourse.nodered.org/t/oee-calculations-with-node-red/45855>\
**Category:** Industrial\
**Created:** [18 May 2021 13:26 UTC](https://discourse.nodered.org/t/oee-calculations-with-node-red/45855 "2021-05-18T13:26:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 May 2021 14:00 UTC](https://discourse.nodered.org/t/oee-calculations-with-node-red/45855/2 "2021-05-18T14:00:29Z")

</div>

Hi, in order to make code more readable and importable it is important to surround your code with three backticks  
`````  
`like this`  
`````

You can edit and correct your post by clicking the pencil icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

Also have a look at the node red docs page Writing Functions, that will show you how you can use `node.warn()` to display data from your function in the debug pane. That will enable you to work out which bit of your function is not doing what you expected.

---

_[View the full topic](https://discourse.nodered.org/t/oee-calculations-with-node-red/45855)._
