Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wesleygrimes/rating-utils
Library of helper methods for rating insurance policies
https://github.com/wesleygrimes/rating-utils
Last synced: 5 days ago
JSON representation
Library of helper methods for rating insurance policies
- Host: GitHub
- URL: https://github.com/wesleygrimes/rating-utils
- Owner: wesleygrimes
- License: mit
- Created: 2016-04-18T18:49:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T13:07:07.000Z (over 8 years ago)
- Last Synced: 2024-12-11T05:05:16.081Z (29 days ago)
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Rating Utils for Node.js
===============
[![Build Status](https://travis-ci.org/wesleygrimes/rating-utils.svg?branch=master)](https://travis-ci.org/wesleygrimes/rating-utils)
[![Coverage Status](https://coveralls.io/repos/github/wesleygrimes/rating-utils/badge.svg?branch=master)](https://coveralls.io/github/wesleygrimes/rating-utils?branch=master)Library of helper methods for rating insurance policies
## Features
* Prorata utilities to get prorate factor, and calculate net change premium
* Many more features to come, just getting started## Installation
`npm install rating-utils`
## Usage
```
var rating = require('rating-utils'),
prorata = rating.prorata;//full term endorsement
var result = prorata.getProrateFactor('2015-01-01', '2015-12-31'); //result should be 1//mid term endorsement
var result2 = prorata.getProrateFactor('2015-01-01', '2015-06-30'); //result should be approx .5//calculate net change premium of mid-term endorsement
var newFullTermAmount = 100;
var prevFullTermAmount = 0;
var policyEffectiveDate = '2015-01-01';
var revisionEffectiveDate = '2015-06-30';
var netchange = prorata.getNetChangeAmount(newFullTermAmount, prevFullTermAmount, policyEffectiveDate, revisionEffectiveDate);```
## Tests
`npm test`
## Contributing
All our welcome to join in the fun.