Overtime calculation

Overtime calculation

Is there any way to calculate overtime for the ticket?
We have work logs and also same timestamps duplicated in the ticket itself. 
I see there is no way to add overtime for work logs. 
Maybe there is a way to write a function that will calculate based on custom date time fields from the ticket and update the overtime field?

                New to ADSelfService Plus?