Skip to content
Sonic AI

Proration calculator: formula and worked examples

Proration calculator: calculate a partial charge or plan change, then check whether your contract uses day, hour or calendar-unit proration.

Lokesh Mahala

Lokesh Mahala, CEO & Co-founder

· 5 min read

A billing period split into six segments, with the final segment blue, beside a blank invoice card.
On this page

A proration calculator estimates the charge or credit for the part of a billing period covered by a plan, seat or fixed fee. For a day-based policy, divide the full-period price by the days in that period, then multiply by billable days. Use that formula only when the contract uses days; hourly or calendar-unit rules need different inputs.

Step 1: Pick the proration method in the contract

Choose the method in the contract or billing setup first. A calculator can multiply the amounts you enter, but it cannot tell you whether the customer was quoted a daily rate, a monthly price carried across a longer invoice, or a threshold rule. For the longer calendar-unit explanation, see calendar-unit proration.

MethodFormula or ruleUse it when
Day-basedFull-period price × billable days ÷ days in the periodThe agreed rule prorates by day
Hour-basedFull-period price × billable hours ÷ hours in the periodThe agreed rule prorates by hour
Calendar-unitAdd full quoted units and prorate only a partial unit at the boundaryA monthly or other unit price spans a longer period
Whole-month thresholdApply the full month when the change passes the agreed thresholdThe contract uses a threshold instead of a fraction

Step 2: Collect the inputs

A reliable calculation needs the billing period, the change's effective date, the price before and after the change, and the proration method. Record the quantity too when the charge is per seat or unit. Confirm the currency and the rounding rule used for the invoice.

Before calculating, write down:

  1. The billing period's start and end.
  2. The effective date or hour of the change.
  3. The full-period price for the old plan and the new plan, if both apply.
  4. The billable days, hours or calendar units under the agreed method.
  5. The number of seats or units covered by the price.
  6. The currency and rounding convention.

The examples below use US dollars, and the same arithmetic works in rupees. In India, GST is charged on the prorated amount, and a credit for a downgrade on an invoice already issued goes out as a GST credit note. In the US, whether sales tax applies to the prorated charge depends on the state. Confirm the tax treatment with your adviser.

Step 3: Apply the proration formula

For a day-based method, multiply the full-period price by the share of the period being charged. The share is billable days divided by total days in the billing period.

Prorated amount = full-period price × billable days ÷ days in the period

Example: Alderpoint, an invented SaaS company, charges $300 for a 30-day billing period. A new service starts with 10 days left, and the contract uses day-based proration:

  • Daily amount = $300 ÷ 30 = $10.
  • Partial-period charge = $10 × 10 = $100.

The same result comes from $300 × 10 ÷ 30 = $100. Enter the actual billing period and the billable days from the contract, rather than assuming every period has 30 days.

For an hour-based rule, use hours instead of days. The same $300 plan over a 30-day period covers 720 hours, so a change with 180 hours left costs $300 × 180 ÷ 720 = $75.

For a whole-month threshold, the contract sets the cut-off. If Alderpoint bills the full month for a $30 seat active more than 15 days, a seat added on 10 March (22 days) is billed $30 for March. A seat added on 20 March (12 days) falls under the threshold, and the contract says whether it is billed by day, $30 × 12 ÷ 31 = $11.61, or not at all.

Calendar-unit: a monthly price on a quarterly invoice

A monthly price on a quarterly invoice calls for a calendar-unit calculation when that is the agreed basis. Add the full monthly units, then prorate the partial month at the edge. Dividing the whole quarterly price by the quarter's total days can produce a different result from the quoted monthly price.

Example: Alderpoint's quarterly invoice covers January through March at $100 per month. If the service begins with 17 billable days in January, then continues for all of February and March, the amount is ($100 × 17 ÷ 31) + $100 + $100 = $254.84. This example assumes the contract counts 17 January days as billable. A day ratio over the whole quarter gives a different answer: $300 × 76 ÷ 90 = $253.33 in a year when February has 28 days, because it prices every day at the quarter's average daily rate. For the longer explanation, read how calendar-unit proration works.

Step 4: Net an upgrade or downgrade

For a mid-period plan change, calculate the unused portion of the old plan and the charge for the same portion on the new plan. Subtract the old-plan credit from the new-plan charge to get the net adjustment.

  • Old-plan credit = old full-period price × remaining share.
  • New-plan charge = new full-period price × remaining share.
  • Net adjustment = new-plan charge − old-plan credit.

Example: Alderpoint moves from a $300 plan to a $450 plan with 10 of 30 days left. The old-plan credit is $300 × 10 ÷ 30 = $100. The new-plan charge is $450 × 10 ÷ 30 = $150. The net adjustment is $150 − $100 = $50 due. This assumes the old plan was billed in advance for the whole period. If it is billed in arrears, there is nothing to credit: bill each plan for the days it ran, here $300 × 20 ÷ 30 = $200 plus $150, or $350. See in advance vs in arrears.

For a downgrade from $450 to $300 with the same share left, the calculation reverses: a $150 old-plan credit against a $100 new-plan charge leaves a $50 credit. Whether that credit reduces an invoice or is handled another way depends on the contract and billing workflow. See upgrade and downgrade proration for the invoice-state mechanics.

Keep metered usage separate from time-based fees

A metered charge is based on recorded usage, such as API calls or minutes. Do not multiply that measured usage by a time share unless the contract separately defines a timed minimum, allowance or fixed fee. Billing systems also differ in their default proration settings, so check yours against the contract.

Seats, platform fees, included allowances and minimum commitments can follow a different rule from measured usage. Check the contract for each line. For questions about minimums and later adjustments, see minimum commitments and true-ups.

Step 5: Check the result before invoicing

A calculation is ready to review when another person can reproduce it from the contract terms and invoice period. Check the method, the effective date, the direction of each credit or charge, and the rounding rule before you apply the adjustment.

  1. Confirm the contract's method: day, hour, calendar unit or threshold.
  2. Confirm which dates or hours count, including the effective date.
  3. Show the old-plan credit and new-plan charge separately.
  4. Apply the rounding rule used by the billing terms or invoicing setup.
  5. Compare the result with the price basis quoted to the customer.

If a monthly quoted price sits inside a quarterly invoice, review the calendar-unit example before using a day-ratio shortcut.

Where Sonic fits

In Sonic AI's Billing engine, a seat change, upgrade or addendum starts a new phase from its effective date and is prorated by your own rule: by day, by hour, or the whole month past a threshold you set. The next invoice shows the prorated difference line by line.

Lokesh Mahala

Written by

Lokesh Mahala

CEO & Co-founder, Sonic AI · LinkedIn

Lokesh is the Cofounder & CEO of Sonic AI. Before starting Sonic, Lokesh was an engineer at Stripe for 4 years building Stripe's Revenue and Finance Automation suite. He was a founding engineer at Recko (acquired by Stripe in 2021) where he built reconciliation solutions for B2C companies. He completed his bachelors from IIT Roorkee.

FAQ

How should I round a prorated amount?

Use the rounding rule in the contract or invoicing setup, and keep enough precision during the calculation to avoid rounding the daily or hourly rate too early. The final amount can differ when systems round each intermediate value versus rounding the final line. Confirm the method your invoice uses before comparing it with a separate calculator.

Does a downgrade automatically mean a refund?

No. The calculation can produce a credit when the old plan's unused value exceeds the charge for the new plan. Whether the credit reduces the next invoice, stays on the account or is refunded depends on the contract and billing workflow. Show the credit and new charge as separate amounts so the result can be reviewed.

Is the day of the change billed on the old plan or the new one?

It depends on the contract or billing setup. Some systems bill the change date on the new plan, so the old plan covers only the days before it; others switch the next day or at the exact hour. In the $450 example, counting the change day on the new plan adds one day at the new rate ($15) and credits one more day of the old plan ($10), so the net moves by $5.

Why can two proration calculators give different results?

They may use different billing periods, effective-date conventions, day or hour counts, calendar-unit rules or rounding. A result is only comparable when both calculations use the same price basis and contract rule. Check the inputs and method first, then compare the credit and charge line by line.

See Sonic run on one of your contracts.

A 30-minute call with the team, using your own contract.

Book a demo