You can’t have a tag act on itself. Use a gateway timer script instead.
Example:
runningTag = '[default]test/isRunning'
hrsTag = '[default]test/RunTime'
isRunning, hours = [tag.value for tag in system.tag.readBlocking([runningTag, hrsTag])]
if isRunning:
hours += 1
system.tag.writeBlocking([hrsTag], hours)