If you divide by 2 it could be that your arm is actually 90 degrees off. Subtracting 90 or adding 90 could potentially be a fix for that depending on the original rotation. Working off the thirdperson template, in my setup I have both subtracting 90 and adding 90 to roll and yaw to make it face my camera direction correctly