How do i turn a set and delay functions into a loop for a countdown?

Another basic timer: