its not even a variable with time in it.
<cfset ET = timeformat(EndTime, 'H')>
Then why are you using timeFormat on it? :) If EndTime is null, its probably returning an empty string, hence the error when you try and perform subtraction. Make sure it's a number and problem solved.