Compute the base rate for a class¶
ClassRateExtensions.BaseRate(Target, inRateTierFactor, inUSLHWFactor, AccidentLimitFactors) (ClassRateExtensions.vb:60-75)
| Field | Value |
|---|---|
| Operation ID | OP-002 |
| Trigger | Called by OP-001, or directly when only the base rate is needed |
| Inputs | iAdjustedRateProvider, rate tier factor, USL&HW factor, accident-limit factors |
| Outputs | Decimal base rate rounded to 4 decimal places using arithmetic (not banker's) rounding |
| Primary components | `ClassRateExtensions.BaseRate(Target, inRateTierFactor, inUSLHWFactor, AccidentLimitFactors) (ClassRateExtensions.vb:60-75)` |
| Entry point | Business\SAIF.Business.Policy.Rating\ClassRateExtensions.vb |
Steps¶
- Start a factor list with
inRateTierFactor.AdjustedRateFactor(Target)(BR-011). - Add
inUSLHWFactor.Factor(Target)(BR-012). - Add each non-
Nothingaccident-limit factor's value. - Multiply all collected values into a cumulative factor starting at 1.
- Return
SAIFRound(Target.PureRateFactor * CumulativeFactor, 4)—SAIFRoundperforms arithmetic - Use the related data-access statements and tables for this operation: SQL-046, USLHW_COMP_FACTOR.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Trigger: OP-001 or direct base-rate need]) --> S1[Start factor list: RateTierFactor.AdjustedRateFactor - BR-011]
S1 --> S2[Add USLHWCompFactor.Factor Target - BR-012]
S2 --> S3[Add each non-Nothing accident-limit factor value]
S3 --> S4[Multiply all values into CumulativeFactor starting at 1]
S4 --> Done([Return SAIFRound PureRateFactor x CumulativeFactor, 4])
Failure and edge-case behavior¶
- Review the linked business rules and SQL documents for the validation or data-access conditions that can block this operation.
Related documentation¶
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources¶
Business\SAIF.Business.Policy.Rating\ClassRateExtensions.vb