Closing a solenoid after a set time interval ends

That makes a lot of sense, it is my first time working with a RTC. Still a lot to learn.