I need help with a timer

Hello friends! im new to arduino and im trying to make a led shine for 5 minutes when i push a button. I made the led shine with a pwm signal using the delay function. I did a code for the led to start when i push the button and a code for the led to shine during 5 minutes (using millis function) but i dont know how to mix both codes in one. Could someone guide me?

Yes, please read the thread, "Read this before posting a programming question" at the top of the forum.

Okay cool, i will post it again properly. Sorry i didnt see that thread.

I did a code for the led to start when i push the button and a code for the led to shine during 5 minutes (using millis function) but i dont know how to mix both codes in one.

But you chose not to share either.
Too bad.