Blink led with push button and potentiometer

Please can you help me for this . Iwabt blink led wihh push button and use with potentiometer . One time push the button and led is on and delay time must be control through the potentiometer .after delay time it must be go off . Please how to write it codes?

Before you begin to write the "code", you must determine how you will wire this project all together.