1. Home
  2. Sample Projects
  3. Insurance Premium Calculation

Insurance Premium Calculation

◷ Reading Time: 6 minutes

Introduction

The Insurance Premium Calculation sample will show how to build a project that calculates the premium for a car insurance company.

Scenario

In this example, we used different logic documents for various rules to calculate the premium based on the applicant’s information. Through this decision process, we assess the vehicle and the driver’s history and personal suitability. As a result, the insurance company offers a premium for the applicant. The inputs and outputs are as follows.

  • Inputs: Vehicle information, Driving history, Personal information, insurance Coverage type.
  • Outputs: Vehicle assessment, Driving history assessment, Personal suitability, The Premium calculation formula

Running the Insurance Premium Calculation sample

  • Open the file PremiumCalculation.xml
Project explorer view showing the Premium Calculation flow document selected
  • Click on the Logic Run template.
Detail of the Logic Run Template menu item
  • Click on any given template.
Logic run template modal showing available test run templates
Detail of the Debug menu item
  • You can click the ‘Next Step’ button to go step by step to follow the flow.
Detail of the Debug Next Step menu item
  • Now, you can see the output values in the ‘Parameters’ window.
Parameters view showing the execution output for the Insurance Premium Calculation project

Insurance Premium Calculation process steps

The process contains the following steps to calculate the Premium Amount.

  1. Personal Suitability
  2. Driver’s History Assessment
  3. Personal Risk Assessment
  4. Vehicle Assessment
  5. Total Risk Assessment
  6. Premium Calculation

Project Description

The Insurance Premium Calculation project contains the following documents.

Decision Graph

  • PremiumCalculation.xml – shows the main data flow

Decision Table

  • PolicyPricing.xml – Calculating the premium
  • RiskAssessment.xml – Determining total risk assessment
  • VehicleAssessment.xml – Assessing the vehicle situation
  • DetermineVehicle Age.xml – Determining the vehicle age
  • PersonalSuitability.xml – Assessing the applicant based on personal suitability and his/her driving history
  • DriverHistoryAssessment.xml – Assessing the driving history based on his/her driving data
  • PersonalRiskAssessment.xml – Assessing the applicant based on personal information

Fact Concept

  • Concept.xml – Define inputs and outputs objects

Business Formulas

  • BusinessFormulas.xml – Define the vehicle age

The Flow Design

  1. Define the Applicant’s information as an input object and a premium calculation formula as an output object.
  • Concept.xml
Fact concept for the Insurance Premium Calculation project

2. Create an expression to determine vehicle age

Detail of the Expression builder modal

3. Create a premium calculation Decision Graph to assess three aspects: derived history, personal suitability, and vehicle, based on applicant information, which will be taken as an input object.

Insurance Premium Calculation decision graph
  • Personal Suitability – It consists of a decision table to determine ‘personal suitability’. This value will be used in Personal Risk Assessment Decision Tables.
Decision table of the personal suitability for the decision
  • Driver History Assessment – In this decision node, driving history assessment is determined to be used for Personal Risk Assessment.
Decision table of the driver history for the decision
  • Personal Risk Assessment – In this decision node, we used the Personal Suitability and Driving History Assessment to determine Personal Risk Assessment. The personal risk assessment will be used for deciding about the total risk assessment.
Decision table of the personal risk assessment for the decision
  • DetermineVehicleAge – In this decision node, the car’s age will be determined based on the car launch date. It is used on the next step for deciding about the vehicle assessment.
Decision table of the vehicle age for the decision
  • Vehicle Assessment – In this decision node, The Vehicle assessment is determined.
Decision table of the vehicle assessment for the decision
  • Risk Assessment – In this decision node, The total risk assessment is decided based on the vehicle assessment and personal assessment.
Decision table of the risk assessment for the decision
  • PolicyPricing – In this decision node, the formula for premium calculation is selected based on the risk assessment and coverageType.
Decision table of the policy pricing for the decision

Download the project

Use the attachment at the end of the page to download the sample project.

Updated on March 8, 2024

Article Attachments

Was this article helpful?

Related Articles