math for making a microsecond timestamp was completely wrong