{"id":14069881,"url":"https://github.com/Sheing/SalesforceActuarial","last_synced_at":"2025-07-30T06:33:10.327Z","repository":{"id":142879056,"uuid":"147045328","full_name":"Sheing/SalesforceActuarial","owner":"Sheing","description":"Salesforce x Actuarial Mortality Table","archived":false,"fork":false,"pushed_at":"2018-09-02T02:53:09.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-04T11:38:00.956Z","etag":null,"topics":["actuarial-functions","actuarial-science","apex","mortality","salesforce"],"latest_commit_sha":null,"homepage":null,"language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sheing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-02T01:33:23.000Z","updated_at":"2023-10-12T23:25:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f1c38f8-bd7c-43c3-b557-ab39402a2c7f","html_url":"https://github.com/Sheing/SalesforceActuarial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sheing/SalesforceActuarial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheing%2FSalesforceActuarial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheing%2FSalesforceActuarial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheing%2FSalesforceActuarial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheing%2FSalesforceActuarial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sheing","download_url":"https://codeload.github.com/Sheing/SalesforceActuarial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheing%2FSalesforceActuarial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267822953,"owners_count":24149728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actuarial-functions","actuarial-science","apex","mortality","salesforce"],"created_at":"2024-08-13T07:07:18.659Z","updated_at":"2025-10-14T12:10:11.069Z","avatar_url":"https://github.com/Sheing.png","language":"TeX","funding_links":[],"categories":["TeX"],"sub_categories":[],"readme":"# SalesforceActuarial\nThe SalesforceActuarial library contains a simple ActuarialTable class for Mortality calculations leveraging Salesforce's native Custom Object and Fields.\n\n---\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003eWORK IN PROGRESS\u003c/strong\u003e\u003c/p\u003e\n\n---\n\n\n# Getting Started: \n1. Create a Custom Object call Mortality_Table__c, with 3 fields:\n* Age__c\n* Death_Probability_Male__c\n* Death_Probability_Female__c\n2. Upload your own Mortality Table to Salesforce through Data Upload Wizard.\n3. Data should consist of Age, Male Mortality, Female Mortality\n3. Map the data to correspond fields mentioned in step 1.\n4. Setup Complete. You should be able to use ActuarialTable library now.\n\n# Example:\nThe present value of a lifetime assurance on a person at age 10, with 2 years waiting period.\n```\nActuarialLifeTable ATB = new ActuarialLifeTable(0.03,'Male');\nActuarialLifeTable.Ax(10,2);\nActuarialLifeTable ATB = new ActuarialLifeTable(0.03,'Female');\nActuarialLifeTable.Axn(25,1,1);\n```\n\n# `ActuarialTable`\n\n| Modifier and type | Method |\n|-------------------|--------|\n| `static Decimal` | `disc()`| \n| `static Decimal` | `lx(Integer x)`|\n| `static Decimal` | `dx(Integer x)`|\n| `static Decimal` | `qx(Integer x)`|\n| `static Decimal` | `D_x(Integer x)`|\n| `static Decimal` | `C_x(Integer x)`|\n| `static Decimal` | `N_x(Integer x)`|\n| `static Decimal` | `M_x(Integer x)`|\n| `static Decimal` | `Ax(integer x, integer f)`|\n| `static Decimal` | `Axn(integer x,integer n, integer f)`|\n| `static Decimal` | `Exn(integer x, integer n)`|\n| `static Decimal` | `AnnDuenx(integer x, integer n, integer k, integer f)`|\n| `static Decimal` | `AnnDuex(integer x,integer k, integer f)`|\n\n# To-Do\n1. Fix CPU Timeout Limit \n2. Advanced Implementation \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSheing%2FSalesforceActuarial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSheing%2FSalesforceActuarial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSheing%2FSalesforceActuarial/lists"}