**SUMMARY**

*Displays the calculated end time for every ongoing order. Only **time if there is one ongoing or name + time separated by commas if there are more than one ongoing.*

*Only works on orders with ordered quantity.*

We check how many pieces we have left to produce on the order.

Then we calculate how long time that amount would take to produce if we produce with the optimal cycle time (100% OEE).

Then we adjust that time with the current oee.

Then we go forth in time and check how long time it is until we have had that much scheduled time.

Example:

**600****left**on the order.**600****left**that take 2 second each:**1200 seconds**left.- Current
**OEE is 50%**: 1200 seconds / 0.5 =**2400 seconds****production left**until calculated end time. - Now is
**2017-01-01 00:00**we have**scheduled production until 00:10**then have a**break until 06:00**and start to produce again.

We have**600 seconds of production left until the break**. Then we have to produce for**1800 more seconds after the next shift starts**.**1800 seconds after 06:00 is 06:30**. Calculated end time is therefore**2017-01-01 06:30**