Proration plugin

PolicyCenter has the following uses for the proration plugin.

  • Generating transaction calculations
  • Rating integration
  • Calling the financialDaysBetween method to calculate a date range that rating uses

PolicyCenter standardizes proration calculations in the proration plugin. For example, the transaction calculator uses the proration plugin rather than directly implementing its own proration.

The built-in implementation of the ProrationPlugin plugin implements the IProrationPlugin plugin interface. If you need to customize proration, you can create your own class that implements this plugin interface. For example, you can change how the plugin calculates the number of financial days between two dates.

Leap days and proration

In the base configuration, the proration plugin ignores leap days when calculating prorated premium if the IgnoreLeapDayForEffDatedCalc in config.xml is set to true. In the base configuration, this parameter applies to both prorated premiums and scalable fields.

If you need to calculate leap days differently for prorated premiums than for scalable fields, you can add an IgnoreLeapDays plugin parameter to the IProrationPlugin. The ProrationPlugin checks for this plugin parameter.