If you are trying to expand this to count down by days, don't bother. The Arduino is rather bad at keeping time, instead you should get a Real Time Clock (RTC) module. They will save you the headache of having to deal with time slipping and offsetting any additional code you may add later.
Did you write that code yourself and of not do you understand what it does?
Side note
With a long for countdown_time
You do not match millis() returned type of an unsigned value. Doing maths with signed and unsigned is tricky… it would be better to use unsigned long everywhere (of course it won’t go below 0 as a result - so take that into account in the code)
Thx for suggestion. My code is slightly modified from somewhere on internet.
You are obsoletely right. In fact in my project I have DS3231 and I use 1Hz oscillator as second trigger. Once again thank you
if you have an RTC I'm not sure why you want to use the 1Hz oscillator... just read the time and use the DateTime and TimeSpan classes to do what you want