then the total resistance (valid only if the current is flowing along L) will be;
R=Rs*(L1/W1+L2/W2)=Rs*[(L-B)/W+B/(W-A)]
This is a good zero-order model / formula.
In fact, in structures with holes (slots) the current flow is never uni-directional - the current will flow around the holes, creating 2D patterns of current flow.
I did a quick simulation of a similar structure - here is the layout and simulation results (potential and current density plots).
Resistance calculated by the formula (sheet resistance of the metal was set to 50 mOhm/sq) is 0.1125 Ohm (there are 2.25 effective squares), while numerical simulation gives a resistance of 0.1179 Ohm. The difference is ~5%, not much (for most purposes) - but can be higher, depending on the layout.
In fact, the layout shown in the original post looks like a part of power net or power transistor. Resistance is only one part of the problem, the other one is current density (electromigration).
To minimize current density, one should avoid placing slots on the path of high current density, avoid having large current going around a sharp (e.g. 90 degree) corner, etc. etc.
Performing a mesh-based simulation (like the one shown above) helps to understand how the current flows, and to optimize the layout to minimize current density and resistance.
Sometimes, you should not minimize the resistance, but to route the current in a balanced (i.e. uniformly distributed) manner - by providing current ballasting mechanisms (meaning - adding some resistance somewhere).
Here is an example of simulation of a more complex structure (tapering metals, metal mesh, many metal layers, via arrays, etc. etc.):