Call scheduling based on the lead creation date & time

Call scheduling based on the lead creation date & time

Hi all!

I am trying to create a custom function, that will schedule a call for the next 30 mins once the lead is created and if the lead is created after 6:30 P.m., it should be automatically scheduled for the next day at 10 AM. It will be more helpful if someone provides the script/code.

Thanks in advance