Fix milisecond math