Prorata Operator

The Prorata Operator calculates the product Y = X * R, in which:

As shown in the next illustration, the Prorata Operator calculates R = (tr - ti) / (tf - ti) as the ratio of two time periods:

Important: Keep in mind that tf - ti is a cycle defined by one of the following frequencies:

  • A day or 24 hours

  • A week

  • A month

  • A year

 

Note: Instead of calculating R = (tr - ti) / (tf - ti), the Prorata Operator can calculate the ratio R = (tf - tr) / (tf - ti) as shown in the next illustration.

Example

If you propose some services that include a monthly calling plan, you may want to adjust a new client’s plan for the first month according to the subscription date of the contract. Likewise, you may want to adjust the plan for the last month when the plan is based on the cancellation date of the contract. In both cases, you use the Prorata component to calculate the calling plan.

A customer signs a contract on the 10th of the month for a service that includes two free hours per month. Because the customer signed on the 10th of the month, you want to prorate two free hours from the 10th to the end of the month. The following table presents the information that you need to set up the Prorata component:

Data

Name of Properties/Settings

Comment

Property to prorate

Number of free hours

In the product Y = X * R, the numerical value X is Number of free hours (two hours).

Generated Property

Number of free hours during the first month

The generated property contains the resulting amount Y = X * R.

Prorata Date

Charge effective date

In the product Y = X * (tf - tr) / (tf - ti), the reference time tr is the Charge effective date (the 10th of the month).

Time period

Every month

In the product Y = X * (tf - tr) / (tf - ti), the initial time ti is the first of the month at 12:00 AM and the final time tf is the last day of the month.

Type of ratio

Calculation according to the Fraction from prorata date option

The Fraction from prorata date option calculates R = (tf - tr) / (tf - ti).

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

Property to prorate: Provides the list of numerical properties. Select the property that represents the numerical value X of the product Y = X * R.

Generated Property Name: Allows you to type the name of the new property that retrieves the numerical result of Y = X * R.

Reference period: Allows you to set up the time period tf - ti and the initial time ti. To set up the time period tf - ti, this area provides you with a list of frequencies (Every, Every other, Every 3nd, and other items) associated with the following list: day, week, month, and year. For example, you can choose a time period of two months by selecting Every other month, or you can choose a time period of one day by selecting Every day.

Note: The Reference Date is used ONLY if you select either or both of the options The same day as the reference date and The same time as the reference date. Instead of the Reference Date, you can use the other options.

Once you have selected a frequency or time period, you can select the initial time ti:

Fraction of the reference period to prorate: Allows you to select the reference time tr and the type of ratio to calculate: R = (tr - ti) / (tf - ti) or R = (tf - tr) / (tf - ti).

Calculation Parameters

You set up the parameters for making the calculation.

Time Unit: Provides the list of time units to calculate the total part of the ratio R. The default option is seconds. Select one of the following units:

Rounding Mode: Provides the list of modes for rounding the decimal portion of the ratio R. The default option is To the next greater value. Select one of the following rounding modes:

Rounding Step: Allows you to type a step rule for rounding the ratio R, or allows you to select a numerical property that represents this step rule. The default option is 1. Example: If the rounding step value is 5 seconds and the rounding mode is To the next greater value, a period of tima of 47 seconds is rounded to 50 seconds. In this example, the rounding step consists of 5-second intervals.

Use typical period of: If selected, this option allows you to turn a variable period into a constant period. Once you have selected the Use typical period of option, you can either select the value of a property or select Numerical Value, and then type a number. For example, to turn each month into a constant period of 30 days, click Use typical period of, select Numerical Value in the list, and then type 30. If you clear Use typical period of, the reference period is 28 days in February, 31 days in January, and so on.