How is billing handled for mid-term changes in Microsoft 365?

Billing is pro-rata for one month when upgrades are made mid-term.