Skip to main content
The way to achieve your own success is the willingness to help somebody else. Go for it!
Showing results for 
Search instead for 
Did you mean: 
Contributor III
Contributor III

Urgent Help Required.. Production hours and Interval


I need an urgent help with this scenario.

The shifts start from same day starting production from 7:00:00 AM till 2:00:00 AM Next Day which counts in the same day as it started from.

Like a Production Started On 22.Feb.2016 from 7:00:00 AM till 2:00:00 AM of 23.Feb.2016 Counts as Production of 22.Feb.2016.

Total Production Hours are 19 Hours. (From 7:00:00 AM to 2:00:00 AM Next Day)

I want to find an interval in terms of aging (hours).

Interval(ProductionDate-Today() OR Now()) but Aging should be according to Production hours only. (19 Hrs )

I would be really thankful if someone could help with this scenario.

1 Reply
Specialist III
Specialist III

Try like

Interval(1/24*26 - StartTime, 'hh:mm:ss'    ) as TimeAge