My apologies, it was line 112, not 116 that needed the ")" at the end.
I will attach the correction below.
The area of the plug in which needed ")" was
' Calculate longitude from sidereal motion
V=(J-2451555./27.321582241)
' Normalize values to range 0 to 1
V=V-int(V)
if V<0 then
V=V+1
end if
V=(J-2451555./27.321582241 is the original.
For some reason hal just wouldn't run it with out the ")"