Trying to calculate difference between two angles

Once you start banking the plane ( roll ), you have to take all parts of the rotation into account, not just work with Z. Unless you want to wait until the plane is totally flat again each time.

I haven’t tested it, but something like this is along the right lines I think:

This gives you the angle between the current nose position, and where you want it to be.