A ruby port of Taxee (originally PHP)
Add this line to your application's Gemfile:
gem 'taxere'
And then execute:
$ bundle
Or install it yourself as:
$ gem install taxere
To calculate state/federal taxes, you can do
require 'taxere'
::Taxere::calculate_income_taxes(year, pay_rate, pay_periods, filing_status, state)
Omitting state will return just the calculated federal tax amount.
Alternatively, you can just see what data we have:
require "taxere/state_tax_calculator"
::Taxere::StateTaxCalculator.new.get_state_data(year, state_abbr)
require "taxere/federal_tax_calculator"
::Taxere::FederalTaxCalculator.new.get_federal_data(year)
Bug reports and pull requests are welcome on GitHub at https://github.com/capcap/taxere.