Stock market wipes over $1 trillion in a day