Available at the gate, cost is determined by length of flight. It is based on availability after all Elites have been accomodated for the upgrade. Flying Hub to Hub, it is unlikely (but always possible) that there will be upgrades for sale.
http://www.delta.com/traveling_check...es/index.jsp#2