Converting the time to mille seconds