Blog
/
Guides

Prorated Billing: Formula, Examples, and AI Credit Plans

Learn how prorated billing works, calculate mid-cycle charges and credits, and understand plan changes, cancellations, and AI credit adjustments.

Sara NelissenSara Nelissen
Written by
Sara Nelissen
Last updated
July 13, 2026
read time
11
minutes
Prorated Billing: Formula, Examples, and AI Credit Plans

Table of contents

An enterprise customer moves to a bigger plan midway through their billing cycle. Finance approves the payment, and their developers immediately start running more AI workloads.

A few requests later, they hit the same usage ceiling as before. The invoice says one thing; the application is enforcing another.

Prorated billing determines what the customer owes for the remaining period. The implementation also needs to account for when their new allowances take effect.

What is prorated billing?

Prorated billing is a method of charging customers for the portion of a billing period they use. It adjusts subscription charges when a customer signs up, changes plans, or cancels partway through a cycle.

For example, a customer using half of a $100 monthly subscription would owe $50 for that portion, assuming a simple daily calculation over a 30-day billing period.

Proration also works in reverse. When customers leave a higher-priced plan before the cycle ends, the unused portion can become a credit or refund, depending on the billing agreement.

How to calculate prorated billing

Prorated billing is calculated by dividing the full plan price by the number of days in the billing cycle, then multiplying by the days covered.

The basic daily-rate formula is:

Prorated charge = (Plan price ÷ Days in cycle) × Days used

‍

For a $90 monthly plan used for 10 days in a 30-day cycle:

($90 ÷ 30) × 10 = $30

The customer owes $30 for those 10 days.

When a customer changes plans, the calculation includes a credit for the unused portion of the old plan and a charge for the remaining portion of the new plan.

Worked example: Mid-cycle subscription upgrade

A customer upgrades from a $120 monthly plan to a $240 monthly plan after using 10 days of a 30-day billing cycle.

With 20 days remaining, the billing system calculates 2 adjustments:

Step Calculation Result
1. Days remaining 30 − 10 20 days
2. Credit for unused old plan $120 × 20 ÷ 30 $80 credit
3. Charge for new plan $240 × 20 ÷ 30 $160 charge
4. Net upgrade cost $160 − $80 $80 due
5. Next renewal Full new plan price $240

The net adjustment is $80. Depending on the billing settings, the provider can collect it during the upgrade or include it on the next invoice.

The example uses daily proration. Some billing providers, including Stripe, calculate adjustments using more precise timestamps. The exact amount depends on when the plan change takes effect.

Common prorated billing scenarios

Prorated billing applies when a subscription service starts, changes, or ends between renewal dates. The following scenarios account for the adjustments customers encounter most often.

Scenario Typical billing adjustment
Mid-cycle sign-up Charge for the remaining portion of the billing cycle
Plan upgrade Credit unused old-plan time and charge for the new plan
Plan downgrade Apply the difference as an invoice credit or refund
Cancellation Credit or refund unused prepaid time when the policy allows it

Mid-cycle sign-ups

A customer joins a $100 monthly plan with 10 days remaining in a 30-day cycle.

The prorated charge is:

[
1001030=33.33
]

The customer pays $33.33 for the first partial period, followed by $100 at the next renewal.

The calculation assumes the subscription uses an existing billing date. A product that starts a fresh monthly cycle on signup would bill the full period.

Plan upgrades

An upgrade from $120 to $240 with 20 days remaining produces an $80 net adjustment, as shown in the earlier example.

The billing provider calculates both line items. The application also has to apply whatever access and allowance changes the new plan includes.

The timing of those changes belongs in the subscription policy. The upgrade and downgrade flow determines how the product responds when the plan takes effect.

Plan downgrades

A customer switches from a $240 monthly plan to a $120 plan halfway through a 30-day cycle.

The unused portion of the old plan is worth $120, and the remaining 15 days on the new plan cost $60. That means the difference is a $60 credit.

Depending on the agreement and billing provider, that credit can reduce a future invoice or be refunded.

Mid-cycle cancellations

A customer cancels a $90 subscription after 18 days of a 30-day cycle, leaving 12 unused days.

If the contract permits a prorated refund:

[
901230=36
]

The customer receives $36 in unused subscription value.

A service may continue providing access through the end of the paid period without issuing a refund.

Benefits of prorated billing

Prorated billing helps subscription businesses charge for the service period customers receive. It also gives customers more flexibility to change their subscriptions between renewals.

The main benefits include:

  • Fairer charges: Customers receive credits for unused prepaid time and pay for the portion of a new plan they receive.
  • Flexible upgrades: Customers can move to higher plans during a billing cycle without paying for overlapping periods.
  • Clearer adjustments: Itemized credits and charges explain the difference between the old and new subscription prices.
  • More flexible cancellations: Businesses can offer partial-period refunds or credits when their cancellation terms allow them.

Proration adds invoice calculations and policy decisions. Products with usage allowances also need to coordinate billing adjustments with the access customers receive.

Prorated billing vs. other billing approaches

Prorated billing is one way to manage a subscription change during an active billing period. Full-period charges, changes at renewal, and deferred invoicing handle the timing and payment differently.

Approach How it works When it fits
Prorated billing Adjusts the price for the portion of each plan used Mid-cycle changes with proportional charges
Full-period charge Charges the full new-plan price without a time adjustment Products whose policies permit full-period charges
Change at renewal Keeps the existing plan until the next billing period Products that don't need mid-cycle plan changes
Deferred invoicing Applies the change now but bills the adjustment later Products that collect adjustments at renewal

Deferred invoicing and deferred plan changes work differently.

With deferred invoicing, customers can access their upgraded plan immediately while the prorated charge appears on their next invoice. A deferred plan change keeps the current subscription active until the scheduled date.

Stripe supports both immediate and deferred proration adjustments, depending on the subscription settings.

Why prorated billing works differently for AI products

Prorated billing works differently for AI products because mid-cycle plan changes affect subscription charges, credit balances, and usage limits, all of which need to reflect the customer's new plan.

For example, upgrading an AI agent platform may give a customer more tokens, additional credits, access to premium models, or higher agent budgets.

The billing provider calculates the prorated charge, while the application's entitlement management system controls which features and usage allowances the customer can access.

A successful payment doesn't update those allowances on its own. The application needs to apply the new entitlements when the plan change takes effect, so customers can use the resources they've paid for.

Credit wallets need their own proration policy

A customer upgrades from a plan with 50,000 monthly credits to one with 200,000 credits.

The subscription adjustment has a clear monetary calculation. The credit allocation depends on the product's rules, including what happens to the existing balance.

Credit policy What happens at upgrade
Prorated top-up Preserve remaining eligible credits and add an agreed prorated amount
Balance recalculation Recalculate the allowance based on the new plan and remaining period
Full new allocation Grant the complete new-plan allocation at upgrade time

These policies produce different balances, even when the customer pays the same prorated subscription charge.

Prepaid credits introduce additional rules for grant dates, expiry, rollover, and credit consumption.

The billing adjustment and credit grant should follow the same effective plan-change policy, with enough transaction history to reconcile both records.

Entitlement changes need a defined effective time

Entitlement changes need a clear effective time so customers receive the correct feature access, token limits, and credit allowances when their plan changes.

Upgrades may require new limits before the next AI request, while downgrades can take effect immediately or at renewal.

For enterprise AI products, the same rules apply to budgets allocated across users, agents, and departments.

How to calculate prorated charges for AI credit plans

Proration only applies to the fixed subscription fee. Usage billed in arrears, like overage tokens, isn’t prorated in Stripe. The application also needs to calculate how the plan change affects the customer's credits.

Consider a customer upgrading after 12 days of a 30-day billing cycle:

  • Current plan: $99/month with 50,000 credits
  • New plan: $299/month with 200,000 credits
  • Days remaining: 18

The subscription adjustment works out as follows:

Item Calculation Amount
Credit for unused old plan $99 × 18 ÷ 30 $59.40
Charge for remaining new plan $299 × 18 ÷ 30 $179.40
Net adjustment $179.40 − $59.40 $120.00

The customer owes $120 for the upgrade if the provider collects the adjustment immediately.

Credit allocation requires a separate calculation. If the product grants a prorated share of the new plan's monthly credits, the customer receives:

200,000 × (18 ÷ 30) = 120,000 credits

The application must also account for unused credits from the old plan. Depending on the policy, those credits may remain available, expire, or be adjusted.

The 120,000-credit grant isn't necessarily the customer's final balance. Existing grants and prior consumption still matter, which is why AI credit infrastructure needs rules for expiry, burn order, and balance adjustments.

Why billing and entitlements fall out of sync

Billing and product access fall out of sync when the billing adjustment and the entitlement update happen at different times.

A mid-cycle upgrade requires 2 updates:

Event Responsibility
Billing adjustment Calculate prorated charges, credits, and invoice items
Entitlement update Apply new feature access, credit balances, and usage limits

If payment succeeds but the entitlement update fails, customers may remain on their old limits.

This is the customer from the top of this article who paid for the bigger plan but is still on the old limits. If access changes before payment is confirmed, they may receive resources they haven’t paid for.

Handling requests in flight

An AI request may still be running when a customer changes plans. The application needs a consistent rule for which plan's allowances apply.

One approach is to associate each request with the entitlement version or credit reservation active when it began. Subsequent requests use the new plan once the change takes effect.

Keeping billing and usage records aligned

Retries, delayed webhooks, and partial failures can create mismatches between billing and entitlement records.

Idempotent processing and retry mechanisms help prevent duplicate charges or credit grants. Linking each adjustment to its subscription change also gives engineering and finance a record to reconcile when something fails.

How to implement prorated billing for AI products

Implementing prorated billing for AI products requires clear plan-change policies, coordinated billing and entitlement updates, and traceable credit adjustments.

1. Define the proration policy

Start with the rules governing when changes take effect and how the remaining subscription period is valued.

Decisions include:

  • Calculation precision: Daily or timestamp-based proration
  • Effective date: Immediate, scheduled, or next renewal
  • Invoice timing: Collect during the change or at a later billing date
  • Credit treatment: Preserve, adjust, or replace existing grants

The policies belong in the subscription and credit data models so the application applies them across customers and contract periods.

2. Coordinate billing and entitlement updates

A plan-change workflow should record the requested change, its effective time, and the status of both required updates.

Billing providers handle the monetary adjustment. The entitlement layer applies the access and usage allowances associated with the new plan.

Use idempotency keys and retry-safe processing, so duplicate events don't create repeated charges or grants.

The workflow also needs recovery behavior when payment succeeds but provisioning fails, or when an attempted change never reaches its required payment state.

3. Apply the correct usage allowances

The entitlement layer resolves feature access, usage limits, and credit allocations from the active plan and applicable overrides.

When a change takes effect, runtime checks need access to the new effective allowances.

For products using credit wallets, grant changes should follow the configured proration policy while preserving the transaction history.

4. Make prorated invoices understandable

A mid-cycle invoice should show how the adjustment was calculated.

Include the unused old-plan credit, the new-plan charge, and the resulting balance. Record the effective dates behind those amounts.

Customers can then reconcile the charge with their subscription history, and support can investigate disputes without reconstructing the calculation from application logs.

5. Keep credit accounting auditable

Prepaid AI credits can involve paid grants, promotional balances, expiry dates, and adjustments.

An append-only ledger records grants, deductions, expirations, and corrections, which gives finance the records it needs for revenue recognition and reconciliation.

Finance determines the accounting treatment based on the contract and applicable standards. Engineering supplies the event and transaction records required to support those decisions.

Keep prorated plan changes consistent with Stigg

A mid-cycle upgrade should update the customer's credits, usage limits, and feature access when the new plan takes effect. If billing and entitlements fall out of sync, customers can end up paying for resources they still can't use.

Stigg is the usage runtime for AI products, enforcing entitlements, credits, usage limits, and spend governance in the request path. It works alongside billing providers like Stripe and Zuora, which continue handling charges and payments.

Stigg supports prorated plan changes through:

  • Entitlement enforcement: Apply updated feature access, credit allowances, and usage limits when a subscription changes.
  • Credit management: Track grants, deductions, and adjustments through an append-only ledger that gives finance a full record to reconcile against..
  • One platform: Teams often start with entitlements or credits and add metering or usage control later, without replacing their billing provider.
  • Low-latency checks: The Stigg Sidecar serves cache hits from memory in single-digit milliseconds and exposes a gRPC interface. Cache misses call the Edge API at around 100ms, with a configurable timeout and fallback to cached data or defaults.

Your billing provider calculates what the customer owes. Stigg applies the credits and access rules associated with the new plan.

The Stigg documentation walks through connecting your billing provider, configuring entitlements, and managing credit grants for mid-cycle plan changes. If you’d rather work through how plan changes should hit your own stack, talk to a human on the Stigg team.

FAQs

1. What does prorated mean?

Prorated means divided in proportion to the amount of time or service used. In billing, a customer who uses half of a monthly subscription may pay half the monthly price, depending on the agreed billing policy.

2. How do you calculate a prorated bill?

You calculate a prorated bill by dividing the full-period price by the days in the billing cycle and multiplying by the days covered. A $90 monthly plan used for 10 days of a 30-day period costs $30.

3. How do you avoid prorated charges?

You can avoid prorated charges by scheduling subscription changes for the next renewal date or choosing a provider's non-prorated billing option. Changing plans during an active billing cycle may create adjustments under the provider's policy.

4. What happens when you downgrade a subscription mid-cycle?

A mid-cycle downgrade can generate a credit for the unused portion of the higher-priced plan, adjusted for the time remaining on the lower-priced plan. The provider may apply the credit to a future invoice or issue a refund under the contract's terms.

5. What is the difference between prorated billing and deferred billing?

The main difference between prorated billing and deferred billing is what each term describes. Proration determines the charge for a partial period, while deferred invoicing postpones collection. A subscription change can be prorated and invoiced at renewal.

6. How does prorated billing work with AI credits?

Prorated billing for AI credits adjusts the subscription charge while a separate credit policy determines the updated allocation. The application may preserve existing grants, issue a prorated top-up, or recalculate the available balance according to the contract.

Latest news.

One email per month.
From engineers, for engineers.

Thank you! Your submission has been received.
Oops! Something went wrong while submitting the form.