Implemented function to get a solution based on Day/Period/Schedule... Seems to be working...