I know I’m a little late with this, but it would be much easier to do this using the dateDiff expression.
Just bind your Time_Diff integer property to an expression like:
dateDiff({Root Container.StartDate.Date}, {Root Container.EndDate.Date}, "min")