A simple gem to calculate amortizing loan payments, as part of training at Samyukti
Add this line to your application's Gemfile:
gem 'amortizer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install amortizer
require 'amortizer'
include Amortizer
loan = Loan.new(1000000, 10.5, 120)
loan.payment
Please see the spec for more examples.
- Fork it ( http://github.com/samyukti/amortizer/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 new Pull Request