@HOUR is a VarTypeName = String. So, adding to it will append your integer to the string. You must convert the string value to an integer...

Code:

$time = Val($hour) + $offset