electric load appliances user input schedule

help me how will make a project using arduino and rtc and relays
TASK:: an appliance will follow user input schedule, atleast it should have the capacity to follow two schedules
like the user will input the schedule ie switch on from 9am to 11am and then switch on again from 4pm to 6pm
but this input schedule could be changable and if the user wants to input some other schedule than this

my code is attached below but this is not user input schedule it is embeded schedule into the arduino i need something generic
the user could input the schedule on serial input
i actually need it to be input on the website and using esp8266 to fetching the schedule from the website but for time being serial-input will work the same

hope you get me

in simple words
i need user input load schedule for electric appliance

rtcimproving.ino (3.33 KB)

Have a look at Serial Input Basics Tutorial from Robin2 for many good examples on how to get Serial input.

Once you have it, you most likely will need to store it in the EEPROM so it stays through power cycles. Have a look at that library as well.