Need help with how to set seconds/degrees

Hey i have a problem where im trying to set a variable to a number and it will keep going after that number. for example i want it so when i set the degrees at 260. i want it to be set to 260 and keep going from 260 and down etc. the degrees are going from 360 to 0 that is a whole cycle, but the thing i need help with is how can i set the degrees aka a variable to 260 and make it so it keeps going after that number. Thanks

this is how i get the degrees

Something like this?
343089-

Yeah works kinda the problem im having is that the sun and the moon are next to each other. and if the moon comes up the same the sun goes down. and sometimes they go in opposite directions

i fixed it by using my old function and just adding a + node after get time seconds.