Insted of using delays which are useless anyway the way you use them now add or substruct delta time (Delta Seconds) to energy and you can multiply or divide delta time to scale change of values as much as you want
Delta Time is time that passed between frames, so by adding you counting time that has passed or countdown by substructing