It mostly depends on when you start feeling uncomfortable about your snake stuck in too small of a tank and how fast your bp is gonna grow. I would say the bare minimum, however, to be if the length and width of the tank is equivalent to the snakes total length. If your tank length of those two sides combined, are smaller than your bp length, then I’d switch for sure.
Sometimes these things you have to learn from your snake as well. Lots of people have issues with too large of a tank and it can stress your bp out, while others have used too small, and has the same results. I feel that a portion of this decision also applies to the snakes personality. 20 gallon is a good start, so I’d wait and watch what type of personality your snake has and how they handle their current environment, and you can then arrange future plans from there.
Personally, I think that a 36x18x18 is sufficient for an adult bp to live in, especially if it’s a male. If it’s a female, I could understand if people wanted to upsize the tank using the rule of thumb mentioned above(sum of length and width), especially if the female is abnormally larger. And if you decide to upsize it so that your bp has more freedom then by all means you are welcome to do so. Just make sure your snake isn’t stressed, and can show they can be comfortable in a larger environment.