---
schema_version: "1"
id: 882408d1deba57a822664b191f10304bea65f7eddcb2a8954a1f9198d33ac7ba
title: Calculation Example for Life Insurance Quote (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_calculation_example_for_life_insurance_quote.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_calculation_example_for_life_insurance_quote.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3a67065f71cd2acf751ad72190e3969135f050a4d28a3ac9a5f32cd507c785e0
description: For the managed package runtime, to provide an accurate quote, an agent must know a person’s age, home ZIP code, and whether they smoke. First, a form prompts for the needed data, from an agent or web self-service. When the form is submitted, a calculation procedure defined for that form runs. The first procedure step is a Matrix Lookup, which looks across the matrix input fields—Smoker, ZIP, and Age—to find the corresponding output (Rate).
products:
  - Omnistudio
release: "264"
---
# Calculation Example for Life Insurance Quote (Managed Package)

For the managed package runtime, to provide an accurate quote, an agent must know a person’s age, home ZIP code, and whether they smoke. First, a form prompts for the needed data, from an agent or web self-service. When the form is submitted, a calculation procedure defined for that form runs. The first procedure step is a Matrix Lookup, which looks across the matrix input fields—Smoker, ZIP, and Age—to find the corresponding output (Rate).

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

![In this matrix, if the inputs are Zip Code 94105, Age 18, and Smoker true, the output Rate is $280. Other input combinations in other matrix rows have different output Rates.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/pricing_calc_steps.png)

![This Matrix Lookup step calls the matrix in the previous figure and lists its inputs and outputs.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/pricing_calc_matrix_lookup.png)

After the first procedural step, the second procedural step runs. This step takes the Rate that is the output of the first procedural step, divides it by a constant, and outputs the Monthly Rate. Subsequent steps can perform additional math on the data submitted—Smoker, ZIP, Age—or use inputs from other data sources, such as policies currently held, or current health status, to perform additional calculations and return a variety of quotes.

![After the Matrix Lookup step, the next three Calculation Procedure steps perform calculations. The first calculation extracts the Rate from the Matrix Lookup step and passes its value to the Annual Premium variable. The second calculation divides the Annual Premium variable to get a Monthly Premium. The third calculation divides the Annual Premium variable to get a Quarterly Premium.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/pricing_calc_matrix_lookup_calc.png)