How does billing work when I upgrade or downgrade?

Your billing is prorated. This means you will only be charged or credited for the difference in cost based on the time remaining in your billing cycle.