Skip to content

CapCap/taxere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taxere

A ruby port of Taxee (originally PHP)

Installation

Add this line to your application's Gemfile:

gem 'taxere'

And then execute:

$ bundle

Or install it yourself as:

$ gem install taxere

Usage

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)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/capcap/taxere.

About

A ruby port of Taxee

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published