WOONSOCKET, R.I. — CVS Health beat Wall Street's earnings forecast for the second quarter and bumped up the bottom of its 2017 guidance despite declined sales in its retail pharmacy business unit. CVS said Tuesday that net income for the second quarter ended June 30 totaled $1.1 billion, or $1.07 per diluted share (GAAP), compared with $924 million, or 86 cents per diluted share, a year earlier. The company attributed the gain mainly to the absence of a $542 million loss on early debt retirement in the current year, partially offset by a $240 million decrease in operating profit and an rise in the effective income tax rate from 39.5% to 41.1%. The tax rate increase stems primarily from a nondeductible goodwill impairment charge of $135 million, partially offset by $14 million in discrete tax benefits related to the required adoption of new accounting guidance for share-based compensation on Jan. 1, CVS said.