fix event time calculator