# Proration

### Note

This information applies to SwaggerHub SaaS.

You can change your billing plan at any time. If you change the plan in the middle of the billing period, we will recalculate your payment for this period based on the number of passed and remaining days, so that you pay only for the actual days you spent on the old plan. The remainder will count towards the first payment on the new plan.

The billing engine counts full days and rounds up to the nearest full day (that is, the current day is considered passed). A day is defined as beginning at 12 AM (midnight) Irish time.

## Example 1

Old plan

New plan

Days of the billing period passed

\$120/month

\$330/month

20 days

In this case, you will get a \$40 discount for the first payment for the new plan:

`\$120/30 * 20 = \$80` <– The price for the past 20 days on the old plan (in this example, we assume there are 30 days in the month).

`\$120 - \$80 = \$40` <– Your credit for the next payment.

`\$330 - \$40 = \$290` <– Your first payment on the new plan.

The invoice will reflect the proration:

## Example 2

Suppose now that you are changing from a more expensive plan to a cheaper one:

Old plan

New plan

Days of the billing period passed

\$330/month

\$120/month

20 days

In this case:

`\$330/30 * 20 = \$220` <– The price for the passed 20 days on the old plan (we assume there are 30 days in the month).

`\$330 - \$220 = \$110` <– Your credit for the next payment.

`\$120 - \$110 = \$10` <– Your first payment on the new plan.

## Example 3

One more example. Consider this change:

Old plan

New plan

Days of the billing period passed

\$330/month

\$120/month

10 days

You will get the following discount:

`\$330/30 * 10 = \$110` <– The price for the past 10 days on the old plan.

`\$330 - \$110 = \$220` <– Your credit for the next payment.

As you can see, the credit you have covers the first payment on the new plan completely. So, the first payment will be \$0 for you. The rest \$100 (`\$220 - \$120 = \$100`) will be applied to the second payment on the new plan. That is, the second payment will be `\$120 - \$100 = \$20` only. In other words, the credit you get when changing the plan will be applied to further payments until it decreases to 0.

## Changing both billing plan and period

You can also change both the billing period and the plan. We will calculate the new payment using the same proration principle: your last payment on the old plan will be re-calculated based on how many days passed, and the remainder will be applied to the new payment (or payments) as described above.