I’m not sure about miles posting for a current month if you cancel during that month but I do know from personal experience that you can cancel in the month the annual fee is assessed and they will wipe that from your account. (i.e. I would wait for this month to close and then cancel on or after the 19th)