{"id":17644519,"url":"https://github.com/wesleygrimes/rating-utils","last_synced_at":"2025-03-30T06:42:01.692Z","repository":{"id":96740380,"uuid":"56533264","full_name":"wesleygrimes/rating-utils","owner":"wesleygrimes","description":"Library of helper methods for rating insurance policies","archived":false,"fork":false,"pushed_at":"2016-04-21T13:07:07.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T16:09:30.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/wesleygrimes.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":"2016-04-18T18:49:55.000Z","updated_at":"2021-09-18T05:19:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a3268ac-9388-4f65-81bc-df1507581602","html_url":"https://github.com/wesleygrimes/rating-utils","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"99a8f4f07646fa2ae63772298f788fc4cf06814e"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleygrimes%2Frating-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleygrimes%2Frating-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleygrimes%2Frating-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleygrimes%2Frating-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesleygrimes","download_url":"https://codeload.github.com/wesleygrimes/rating-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285667,"owners_count":20752953,"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","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":[],"created_at":"2024-10-23T10:06:33.650Z","updated_at":"2025-03-30T06:42:01.670Z","avatar_url":"https://github.com/wesleygrimes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rating Utils for Node.js\n===============\n[![Build Status](https://travis-ci.org/wesleygrimes/rating-utils.svg?branch=master)](https://travis-ci.org/wesleygrimes/rating-utils)\n[![Coverage Status](https://coveralls.io/repos/github/wesleygrimes/rating-utils/badge.svg?branch=master)](https://coveralls.io/github/wesleygrimes/rating-utils?branch=master)\n\nLibrary of helper methods for rating insurance policies\n\n## Features\n\n* Prorata utilities to get prorate factor, and calculate net change premium\n* Many more features to come, just getting started\n\n## Installation\n\n`npm install rating-utils`\n\n## Usage\n\n```\nvar rating = require('rating-utils'),\n    prorata = rating.prorata;\n\n//full term endorsement\nvar result = prorata.getProrateFactor('2015-01-01', '2015-12-31'); //result should be 1\n\n//mid term endorsement\nvar result2 = prorata.getProrateFactor('2015-01-01', '2015-06-30'); //result should be approx .5\n\n//calculate net change premium of mid-term endorsement\nvar newFullTermAmount = 100;\nvar prevFullTermAmount = 0;\nvar policyEffectiveDate = '2015-01-01';\nvar revisionEffectiveDate = '2015-06-30';\nvar netchange = prorata.getNetChangeAmount(newFullTermAmount, prevFullTermAmount, policyEffectiveDate, revisionEffectiveDate);\n\n```\n\n## Tests\n\n`npm test`\n\n## Contributing\n\nAll our welcome to join in the fun.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleygrimes%2Frating-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleygrimes%2Frating-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleygrimes%2Frating-utils/lists"}