You can buy as many additional miles as you want.
The discounted price is good up until 4 months prior to the end of the lease.
After that, the price goes up.
You can pay a lump sum, or divide the cost evenly over your remaining payments.
Remember, you also have to pay sales tax on the additional miles.
I recently purchased 15,000 additional miles for my X5.