(180-(serverTime/60))
in text this means
(my restart schedule in minutes MINUS (how long the server has been running DIVIDED BY the number of seconds in a minute))
This gets you VERY close to the amount of remaining time to next restart. I can't do anything about the decimal points.
found a solution to the decimal problem
Code:
(240-(round(serverTime / 60)))