Ramping Down the variable in Arduino IDE with the help of millis()??......

what I could use to tell the same setpoint variable in the program above, to stay at one value for 1 second

Timing using millis()