It seems that you are not using the function properly. You should try with the following syntax :
DateDiff (HH,TEHOPVM1,TEHOPVM2). If the result is still 0, try searching the Internet for other references or examples about this function. Might be a good idea to start with a website like W3schools. You can find plenty of references about almost all programing languages there.