Time difference btween two dates

Is there a way to get the time difference between two dates without using the setstate function? I saw the example on a prior question but that will not work for me unfortunately.

I tried to do a simple TimeA - TimeB but that does not seem to do it. ( tried to write the result to a timeinterval, number, text etc also )

Thank You!

You should be able to do TimeA - TimeB:format as Hours/Days .

Here you can see a datediff demo;

or in the editor:

Thank you guys! - I was running something to add a field that has this information. I just realized i was entering the wrong period. TimeA-TimeB does work.

Was there a solution for this? I use the Time A-Time B but for some reason bubble always seem to round the hour to early