You will be billed on the plan applicable to your account on last day of the month irrespective of the day on which you upgraded/downgraded the plan.  However, if you downgrade your plan, you may lose the data related to those modules which are not available in the downgraded plan. So, we suggest that you take a complete backup of your account before downgrading the plan.