# Calculate PCM & PCB total & average using Modified JavaScript Value Step

**URL:** <https://community.automationedge.com/t/calculate-pcm-pcb-total-average-using-modified-javascript-value-step/5723>\
**Category:** Process Studio\
**Created:** [April 11, 2022, 9:47am UTC](https://community.automationedge.com/t/calculate-pcm-pcb-total-average-using-modified-javascript-value-step/5723 "2022-04-11T09:47:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![UjjwalaThakre](https://avatars.discourse-cdn.com/v4/letter/u/4da419/32.png) [@UjjwalaThakre](https://community.automationedge.com/u/UjjwalaThakre)\
**Post date:** [April 11, 2022, 9:47am UTC](https://community.automationedge.com/t/calculate-pcm-pcb-total-average-using-modified-javascript-value-step/5723/1 "2022-04-11T09:47:24Z")

</div>

Calculate PCM & PCB total & average using Modified JavaScript Value Step

---

<div class="post-metadata">

**Author:** ![Ankita1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Ankita1](https://community.automationedge.com/u/Ankita1)\
**Post date:** [April 12, 2022, 8:00am UTC](https://community.automationedge.com/t/calculate-pcm-pcb-total-average-using-modified-javascript-value-step/5723/2 "2022-04-12T08:00:59Z")

</div>

Hi Ujjwala,

Refer the below image for solution:

![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/2/268c4c217d8df855a1fb268dbe9929040615a957.png)
