You can upgrade to AP anytime after you turn your printed voucher in for a regular ticket, and still get credit for the full gate price applied to the upgrade. Typically you need to upgrade before the end of the last day you use the ticket. But there are exceptions.