Fix calculation of cell milliseconds