Converting times from seconds to milliseconds