We agree many charities aren't effective, so you can't just earn to give to random organisations. You need to spend time working out where the donations can be most effective.
I think GiveWell is a good starting point: http://www.givewell.org/giving101
Though there's a lot more to say: https://80000hours.org/2015/12/where-should-you-donate-to-ha...