Load the example rater
Rater.build("dwelling/rater.rsl").
Rater.build takes the .rsl file or its folder, and Rater.load takes a packaged bundle.
The example program is synthetic. The following expected annual premiums come from its rate tables and a hand calculation.
Expand Example policy inputs and copy the inputs before running the checks.
Example policy inputs
Example policy inputs
Copy these inputs for a driver with 24 years licensed and one vehicle:
Compare independent premiums
Every other factor is 1. The annual premium is 504, or 454 with the multi-policy discount.
Check boundaries and business rules
Add cases at both sides of rating bands, such as annual mileage 12,500 and 12,501. Test each business rule with a request that breaks it, then compare the returned code:rater.explain(policy) to inspect inputs, factors, and rounding when a result differs from its expectation.