Datediff() can be used to calculate difference between two dates in hours.
datediff([startdatefieldname],[enddatefieldname],'H')