Retirement tax questions

the only logical calculation for effective tax rate is Total Tax / Taxable Income. However, TT doesn't seem to do that. After messing around with various combinations, I found that on my return the calculation is:

Total Tax before other taxes (sched 2, line 21 in 2022) / AGI

 

I suppose you can make a case for this, but I still would prefer the more logical calculation.