How do I transform extra bones between a joint if arm is turned 90 degrees forward and backwards, same with left and right in ctrl rig. I just need a tutorial on one bone please?

I wish someone could create a node for this for start and end position for x 90 or -90 y 90 or - 90 and so on. Im still trying. Its hard changing all 300 animation assets to do the same thing.