Fix calculation of timestamp for data point