How can I calculate difference between two date time values?

Let’s say I have the ticket open time and ticket close time, I want to calculate the difference between them. What’s the expression to do that?