Two thoughts that might be helpful:
1. I try, with spreadsheets, to figure out how much left over I will have later if I continue spending as I am now. This is a static model in my own spreadsheets, but I cross check with FIREcalc and similar. Once I have an idea of how much I think I will have leftover, I ask myself to what extent I want to (a) spend more, (b) give more to my kids, and (c) give more to charity.
2. I try to have a rhythm of gifting in my life. That means each year I establish giving traditions by picking days of the year, amounts, and target charities. You might give $1K on your birthday, or $5K at Christmas, or $100 on your anniversary or whatever. Then as that rhythm gets established, I can see if it feels like too much or not enough. As time goes by I can then adjust the amounts up or down.
As for your question, unless you're doing significant Roth conversions or have business depreciation, your taxable income is probably pretty close to your spendable income, so you could use line 15 of your 1040 and pick a percentage of that to target.