Making a Servo spin for set amount of time

i was thinking to maybe set the oldtime variable as a negative number at the end of the servo spinning, so it would take far longer for oldtime and millis to be greater than 8000.
I cant seem to get it to work myself and presume its something to do with the way that the variable is defined.