4 common walls would be a box with a side missing.
Well, if your port has to bend and go along the back wall, then it would actually be using 4 common walls, but I see the Torres calculator doesn't see it like that.
I just use WinISD to get the port length I need and do all of the numbers myself. I find it to be less of a headache, as odd as that sounds.
Technically Torres would see it as the side BECOMING the back wall as it L's. It uses another wall of the box yes, but it's also technically just using 3 common walls as it never uses all 4 at any 1 particular time. It's like looking at the front of the box it uses 3 common walls, then if you took the side off and look at where the L starts it's still just using 3 commong walls.