Qualified charitable distributions to reduce your taxable income from RMD

How can I model a qualified charitable distribution (QCD) from my RMD to reduce my taxable income, so that the amount of the QCD only reduces my tax liability, and not the amount of my after tax RMD?