For new members, you only pay for the part of the billing period they belong to in your team space. The same applies to removed members.
If you switch from monthly to yearly billing, you get the prorated amount, based on the time left in your monthly billing interval.