trying new medianByTime calculation
visualize the median by time calculation