I am a noob, I have some knowledge of c and c++ but that is it. I can solder stuff and I have made couple of diy amplifiers. Just got arduino nano and i wanted to do the following but i need your help.
1. On button switch press relay turns on for 10minutes.
2. If no button switch is pressed again it will turn off after 10min.
3. If button is pressed it will add 10min on top of the time that is left.
Ive read that i need millis function (i am reading that now how it works) and by now i have managed to make the onboard led blink for the time that i want

I will also need suggestion how to connect the button switch (example: D2 to 100kohm to gnd, D2 to button to +5V)?