How does the software calculate excess tax paid (section 20(11)) on the FTC worksheet

I'm being reviewed by CRA and I need to explain how and why the software creates these excess tax paid values