Calculation of the rotations for banks. Re #5403