SingaporeSDLCalculator
SingaporeSDLCalculator
is the gem PayrollHero.com created and use to calculate for Singapore's Skills Development Levy (SDL) contributions.
Installation
Add this line to your application's Gemfile:
gem 'singapore_sdl_calculator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install singapore_sdl_calculator
Usage
Remuneration is any wage, salary, commission, bonus, leave pay, overtime pay, allowance (e.g. housing) and other payments in cash.
require 'singapore_sdl_calculator'
result = SingaporeSDLCalculator.calculate(remuneration: 500.50)
result # => 2.00
Contributing
- Fork it ( https://github.com/[my-github-username]/singapore_sdl_calculator/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request