When to cancel CC to avoid annual fee

Hi everyone,

I am quite new to CC churning and applied for my first ANZ black frequent flyer CC last year in July and it was approved. I just received a new AMEX frequent flyer today and I am feeling abit confused about the time frames of when to cancel the cards.

I won’t be cancelling both cards but I am tossing between which one to cancel. For ANZ black to avoid the annual fee should I cancel this by July? As for AMEX to receives the bonus Qantas points it’s $5K spend in 3 months and I’m certain I can achieve this in 2 months. However, will I still be charged the annual fee after my first statement and I cancel after the points are in my account will this be retracted? Could I get pro rata on the annual fee?

Thanks!