I don't know how long as that is an individual thing. I am certain that hormones are a factor to his current behavior and hopefully that part will start easing up soon.
However, the biting needs to be addressed and the sooner the better for both of you. I understand that his beak is also like another hand for him and he uses it to help especially with climbing, but he can do this without causing undue pain to you. Bringing some order into his life at this point will most likely help to stabilize him emotionally and give him some sense of security because he will begin to know what to expect and when to expect it to happen and this will give him some semblance of control over his own life as well.
to this end I would try to set up a semi flexible schedule for him. Such as wake up time breakfast time. time out of cage for exercise and interaction, nap time, play time in cage, play and interaction out of cage, dinner and bed times. You would need to adjust that to work with your schedules and what each time is can be changed to meet your needs as well as his, but it does provide him a framework that should help to ease his mind. As to the biting, I would watch his body language to see what his mood is and for a while you will need to watch closely as his mental and emotional state is subject to rapid changes especially with everything in a state of flux. Watch especially his eyes for pinning and how he holds his feathers, if they are tight against his body, he will probably bite so back of just a little and see if he will relax and then continue. Biting should be met with first a verbal calm but firm " No bite" or something similar, then with the verbal "no bite" and pushing his beak aside from where he is biting, then the most severe response is that of a verbal " no bite" and sitting him down on the nearest flat surface. He will not want to stay there so be prepare to move away from him a little. You only want him to understand that you don't want him to bite you and that if he bites you will put him down. This is not what he wants so he will begin to ease up a little. Let him come back in a couple of seconds to a minute after putting him down.
He is smart and likely to be a quick learner, so it should not take too long before you begin to see some results.





