Added a function to convert slider value to day and time of the week