Apple’s market cap reached $5.04 trillion in Tuesday’s opening trade before the stock pared some of its initial gains.