how long is a piece of string?
Some bird rarely if ever go into hormone mode, others are like it year round. Normally from what I can tell it lasts about a month. There's things you can do to help it move on of course. Start with limiting daytime hours for them making sure they get around 10-12 hours sleep. Also limit the high energy foods and make sure you're not feeding warm foods. The other way to help is to make sure he gets lots of exercise, nobody wants to diddly the doodly if they're exhausted.
Aside from that, just ignore the bad behaviour, definitely keep removing when he starts doing the "sexy dance" and unfortunately he will be frustrated. He has those hormones flowing and he wants to act on them but he can't, and the one thing that seems to act how he wants suddenly refuses to let him seal the deal, so he's understandably pissed off and horny