I want to change the color of the event according to the time interval. If the event is back than now, it should be red. If it's going to start at a later time, it should be green, If it is currently in progress, it should be blue. How can I do this ? Please find attached a sample image.