Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waihon/premium-calculator

A life insurance premium calculator written in Ruby using Object-Oriented Design.
https://github.com/waihon/premium-calculator

Last synced: about 2 months ago
JSON representation

A life insurance premium calculator written in Ruby using Object-Oriented Design.

Awesome Lists containing this project

README

        

# Premium Calculator

## Input
1. Gender
2. Date of Birth
3. Smoking Status
4. Coverage Amount

## Formula
Premium Amount = Coverage Amount x Per Dollar Premium Rate

Per Dollar Premium Rate is retrievable from a premium rate table based on the following factors:

1. Gender
2. Age Next Birthday
* Derived from Date of Birth
3. Mortality Class
* Derived from Smoking Status

## Commands

1. Run tests
* `bundle exec rake test`