Giter VIP home page Giter VIP logo

salesforceactuarial's Introduction

SalesforceActuarial

The SalesforceActuarial library contains a simple ActuarialTable class for Mortality calculations leveraging Salesforce's native Custom Object and Fields.


WORK IN PROGRESS


Getting Started:

  1. Create a Custom Object call Mortality_Table__c, with 3 fields:
  • Age__c
  • Death_Probability_Male__c
  • Death_Probability_Female__c
  1. Upload your own Mortality Table to Salesforce through Data Upload Wizard.
  2. Data should consist of Age, Male Mortality, Female Mortality
  3. Map the data to correspond fields mentioned in step 1.
  4. Setup Complete. You should be able to use ActuarialTable library now.

Example:

The present value of a lifetime assurance on a person at age 10, with 2 years waiting period.

ActuarialLifeTable ATB = new ActuarialLifeTable(0.03,'Male');
ActuarialLifeTable.Ax(10,2);
ActuarialLifeTable ATB = new ActuarialLifeTable(0.03,'Female');
ActuarialLifeTable.Axn(25,1,1);

ActuarialTable

Modifier and type Method
static Decimal disc()
static Decimal lx(Integer x)
static Decimal dx(Integer x)
static Decimal qx(Integer x)
static Decimal D_x(Integer x)
static Decimal C_x(Integer x)
static Decimal N_x(Integer x)
static Decimal M_x(Integer x)
static Decimal Ax(integer x, integer f)
static Decimal Axn(integer x,integer n, integer f)
static Decimal Exn(integer x, integer n)
static Decimal AnnDuenx(integer x, integer n, integer k, integer f)
static Decimal AnnDuex(integer x,integer k, integer f)

To-Do

  1. Fix CPU Timeout Limit
  2. Advanced Implementation

salesforceactuarial's People

Contributors

sheing avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.