The returned hour and day variables are actually text variables (even though you initialised them as numbers).
You will need to convert them to numbers.
Try...
n=SPLIT(hour ,"%n",hour_num)
n=SPLIT(day ,"%n",day_num)
To prove it if you were to type ... PRINT hour + hour
you would get 1313 (if it was 1.00pm)
but ... PRINT hour_num + hour_num
you will get 26
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11