Skip to main content

FIXED_PRORATA

FIXED_PRORATA aligns billing periods to calendar boundaries and splits partial periods into daily pro-rata (creation date β†’ end of month) plus remaining full month(s) within the cycle.

For hourly services, FIXED_PRORATA is applied by default and enforced β€” there is no separate hourly billing rule. Even if another billing rule is configured globally, the system applies FIXED_PRORATA for hourly billing.

Supported on hourly (enforced), monthly, quarterly, semi-annual, yearly, bi-annual, and tri-annual billing cycles. See Billing Rules β€” cycle support.

Quick start
ConceptBehaviour
HourlyFIXED_PRORATA enforced β€” per-hour usage; invoices at month end
Period alignmentCalendar months, quarters, or years
Partial startDaily pro-rata to month end + full remaining months
Price sourceRate card package price for the selected cycle
UpgradesUnused credit + new plan cost for remaining period

Hourly billing​

Hourly services always use FIXED_PRORATA. CMP charges per hour of actual usage and consolidates all hourly usage into a single invoice at the end of the month (or on the 1st of the following month) β€” regardless of payment mode:

ModeBehaviour
PrepaidWallet deducted continuously; month-end invoice per prepaid model
PostpaidUsage records maintained; consolidated invoice at month end
ManualInvoice generated; offline settlement

Mandatory hourly services​

These service types always use hourly billing with FIXED_PRORATA β€” see Billing Cycles β€” mandatory hourly:

VM_SNAPSHOT, BS_SNAPSHOT, BACKUP, BS_BACKUP, BANDWIDTH, ACCOUNT_TEMPLATE, ISO

See also Hourly billing cycle.

Fixed period alignment​

CycleAlignment
MonthlyCalendar months (1st to last day of month)
QuarterlyCalendar quarters β€” Q1 Jan–Mar, Q2 Apr–Jun, Q3 Jul–Sep, Q4 Oct–Dec
YearlyCalendar year (January 1 – December 31)

Calculation formula​

All prices come from the package (rate card) β€” admin enters a price per billing cycle. For pro-rata (partial periods), CMP derives a per-day rate from that cycle's package price.

PRO_RATA_PRICE_FROM_SELF_CYCLE​

Daily pro-rata and remaining-month amounts are always derived from the current billing cycle's price (for example, quarterly price), not from a separate monthly price on the rate card.

PRO_RATA_PRICE_FROM_SELF_CYCLE is true by default and is not configurable β€” admins cannot change this setting. CMP always uses the selected cycle's package price for pro-rata calculations.

WhatFormula
Monthly equivalentCycle price Γ· billing_cycle->duration (e.g. quarterly Γ· 3, yearly Γ· 12)
Daily cost (pro-rata)Monthly equivalent Γ· 30.5
Pro-rata amountDaily cost Γ— usage days (creation date β†’ end of current month)
Remaining months amount(Cycle price Γ· duration) Γ— remaining months

Worked example β€” quarterly​

Service created 4 Feb 2025, quarterly price $300:

StepCalculation
Monthly equivalent$300 Γ· 3 = $100
Daily cost$100 Γ· 30.5 β‰ˆ $3.28
Pro-rata (4 Feb β†’ 28 Feb)$3.28 Γ— 25 days β‰ˆ $82
March (1 full month)$100 Γ— 1 = $100
Total (one invoice)β‰ˆ $182

Service upgrades​

When upgrading a service, CMP calculates:

ComponentDescription
Unused amountCredit for unused portion of current plan (upgrade date β†’ billing period end)
New plan costCost of new plan for the same remaining period
Upgrade chargemax(New Plan Cost βˆ’ Unused Amount, 0)

Key concepts​

TermDefinition
Current billing periodPeriod covered by current invoice β€” from service creation or last renewal
Remaining periodUpgrade date β†’ end of current billing period
start_atService creation date (new) or last renewal date (renewed)
end_atEnd of current billing period (month / quarter / year end)

Monthly upgrade formula​

Remaining Days = Days from upgrade date to end of current billing period
Unused Amount = Old Plan Monthly Price Γ— (Remaining Days Γ· 30.5)
New Plan Cost = New Plan Monthly Price Γ— (Remaining Days Γ· 30.5)
Upgrade Charge = max(New Plan Cost βˆ’ Unused Amount, 0)

Quarterly / yearly upgrade formula​

Daily Cost = Monthly Price Γ· 30.5
Remaining Days = Days from upgrade date to end of current month
Remaining Months = Complete months from next month to period end (quarter/year end)

Unused Amount = (Daily Cost Old Γ— Remaining Days) + (Old Monthly Price Γ— Remaining Months)
New Plan Cost = (Daily Cost New Γ— Remaining Days) + (New Monthly Price Γ— Remaining Months)
Upgrade Charge = max(New Plan Cost βˆ’ Unused Amount, 0)

Upgrade invoice generation​

ItemBehaviour
Old invoiceUnchanged
New invoiceGenerated for upgrade charge
Invoice periodUpgrade date β†’ current billing period end
AmountUpgrade charge (after any discounts)

Prepaid upgrade examples​

Example 1 β€” Monthly, upgrade mid-month​

Billing cycleMonthly
Service created/renewed1st of month
Current period1st – 30th
Old plan$100/month
New plan$200/month
Upgrade date15th
Already paid$100 for full month

Step 1 β€” Old plan unused amount

  • Used: 1st – 15th (15 days). Remaining: 15th – 30th (16 days)
  • Daily cost: $100 Γ· 30.5 = $3.28
  • Unused amount: $3.28 Γ— 16 = $52.48

Step 2 β€” New plan cost for remaining period

  • New daily cost: $200 Γ· 30.5 = $6.56
  • New plan cost: $6.56 Γ— 16 = $104.96

Step 3 β€” Upgrade charge

  • Upgrade charge = $104.96 βˆ’ $52.48 = $52.48

From the next month, normal monthly renewal at $200/month.

Example 2 β€” Quarterly, upgrade mid-quarter​

Service created10 Jan 2025 (Q1: Jan–Mar)
Old plan$300/quarter (monthly equiv. $100)
Upgrade date15 Feb 2025
New plan$450/quarter (monthly equiv. $150)

Initial setup paid: Pro-rata Jan 10–31 ($72.13) + Feb–Mar fixed ($200) = $272.13

Unused amount (old plan):

  • Pro-rata days Feb 15–28: 14 days. Remaining months: 1 (March)
  • Daily: $300 Γ· 3 Γ· 30.5 = $3.28. Monthly equiv.: $100
  • Unused: ($3.28 Γ— 14) + ($100 Γ— 1) = $145.92

New plan cost:

  • Daily: $450 Γ· 3 Γ· 30.5 = $4.92. Monthly equiv.: $150
  • New cost: ($4.92 Γ— 14) + ($150 Γ— 1) = $218.88

Upgrade charge: $218.88 βˆ’ $145.92 = $72.96

From 1 Apr, normal quarterly billing at $450/quarter.

Example 3 β€” Yearly, upgrade mid-year​

Service created5 Jan 2025
Old plan$1,000/year ($83.33/month)
Upgrade date15 Jun 2025
New plan$1,500/year ($125/month)

Unused amount (old plan):

  • Pro-rata days Jun 15–30: 16 days. Remaining months: 6 (Jul–Dec)
  • Daily: $1,000 Γ· 12 Γ· 30.5 β‰ˆ $2.73. Monthly equiv.: $83.33
  • Unused: ($2.73 Γ— 16) + ($83.33 Γ— 6) β‰ˆ $543.68

New plan cost:

  • Daily: $1,500 Γ· 12 Γ· 30.5 β‰ˆ $4.10. Monthly equiv.: $125
  • New cost: ($4.10 Γ— 16) + ($125 Γ— 6) = $815.60

Upgrade charge: $815.60 βˆ’ $543.68 = $271.92

From 1 Jan 2026, normal yearly billing at $1,500/year.