Subscription resources
Definition of Subscription Resources
These are resources with a fixed monthly cost. The quantity and usage cost can be accurately calculated before creating the resource. Examples include the number of CPU cores, RAM capacity, hard disk space, etc.
Calculation Method
Resource Initialization
When initializing a resource, the cost is calculated as follows:
(Monthly Price / Actual Hours in the Month) * (Remaining Hours Until the End of the Month)
For example, calculating the initial cost when initializing 1 core CPU: If 1 core CPU costs 72,000 VND/month. June has 30 days, so the total number of hours in the month is 720 hours. Thus, the cost per hour of usage is 100 VND/h. When creating a server at 0:00 on June 16, the remaining hours of usage in June are 360 hours. Therefore, the cost for 1 core CPU in June that the customer needs to pay is: 100 VND/h * 360 h = 36,000 VND. If created in November, which has 31 days, the hourly rate would be: 72,000 VND / 744 h ≈ 96 VND/h.
Monthly
When maintaining monthly usage, the monthly cost of subscription resources remains unchanged, regardless of the number of days in the month.
Using the example above, the monthly cost for 1 core CPU remains 72,000 VND/month.
Invoice generation
Invoice generation milestones for prepaid accounts
The invoice generation milestones for prepaid accounts are illustrated in the following example:
Explanation:
- Day 4: Upgrading the account to a paid plan, the system generates an invoice containing information and costs for the resources from the time of upgrade to the end of the period (from day 4 to day 30).
- Day 10: Creating a new resource, the system generates an invoice containing information and costs for the newly created resource from the time of creation to the end of the period (from day 10 to day 30).
- Day 15: Changing configuration.
- If the change is an increase: an invoice is generated for the additional costs from the time of change to the end of the period (from day 15 to day 30).
- If the change is a decrease: the system refunds the difference in configuration costs from the time of change to the end of the period (from day 15 to day 30).
- Day 1 of the following month: A periodic invoice is generated, containing usage information about resources and costs for the new month.
- Day 5: Deleting a resource. The system finalizes the costs from the beginning of the period to the deletion date (from day 1 to day 5). An invoice is generated to refund this cost.
Invoice generation milestones for postpaid accounts
For postpaid accounts, invoices are only generated once on the periodic invoice date (Day 1). The invoice contains usage information and costs for the previous month.
Corresponding to the usage milestones in the example above for prepaid accounts, the invoice generation milestones for postpaid accounts are explained as follows:
- Day 4: Upgrading the account to a paid plan, no invoice is generated.
- Day 10: Creating a new resource, no invoice is generated.
- Day 15: Changing configuration, no invoice is generated.
- Day 1 of the following month: A periodic invoice is generated, containing usage information about resources and costs for the previous month:
- Costs for paid resources from day 4.
- Old configuration costs for resources created from day 10 to day 15.
- New configuration costs for resources created from day 15 to day 30.
- Day 5: Deleting a resource, no invoice is generated.
Refund for subscription resources
This applies only to prepaid customers. Since the costs for the month have already been paid in advance, when there are reductions or resource deletions, the system will refund the remaining amount.
The refund invoice has a negative value, meaning it adds money to the Balance.
Refund principles:
- The refunded amount will be added to the customer’s Balance.
- The cost of the resource at the time of payment is taken from which Balance, the refund will be returned to that Balance. See details in the Balance Deduction/Refund Rules section.