Stuck in test arrangement and test solution of Arithmetic Formatter

Hi, Guys.

My code failed to run the test arrangement and test solutions.
The link is provided below
I appreciate your time and comment to point out my mistake.

User Agent is: Chrome/89.0.4389.114

Challenge: Arithmetic Formatter

Link to the challenge:

You are incorrectly calculating the number of spaces to put in your top and bottom number strings, you are incorrectly calculating the length of the bottom dashes string, and you are adding only 2 spaces in between problems instead of 4.

The width of each problem should be the length of the largest number plus 1 for a space and plus 1 for the operator (so max(len()) + 2). You should be able to recalculate the spacing from there.