But some rough rules of thumb:
* Make a target level of personal consumption you want to meet over your life (we suggest income doesn't have much effect on happiness after $40k, or $60k if you live somewhere expensive, and plus $20k if you have a child)
* First, save enough that you could live for 12+ months with no income. This covers you in emergencies and career changes.
* Then save a decent fraction of your income to maintain this level of income in retirement (at least $6k per year to be able to have $40k per year at retirement).
* Always donate a small amount (say several percent) to keep in the habit of giving and learn more about charities.
* After you're meeting your saving and consumption targets, you can donate most of the remainder. Or if you're not sure where to give right away, then put it in a donor advised fund so it can be donated later.
Beyond this, it can vary from person to person, depending on how risk averse you are, how much you're prepared to sacrifice in order to do good, and how urgent you think it is to do good now rather than later. It gets complicated. e.g. if you don't think it's urgent to donate, then you might want to take care of retirement savings first, then donate later.
Some more discussion: https://80000hours.org/articles/should-you-wait/