Donation to charity & Tax Saving

I don't see the math that Donation to charity & Tax Saving is good for anyone - money wise. 

Why would I donate, say, $50, 000 consider if I have to pay 24% tax , that would leave me with $38,000 more in my pocket.   With 32% tax , I would have $34, 000 more.