Tax Easy
Ruby Gem to calculate Taxes.
Installation
gem 'tax_easy'
Run the bundle command to install it.
Calculators - Brazil
IOF
TaxEasy::Financial::Brazil::IOF.new.calculate(20_000, 48, 1.5) # ==> 356.70671942746617
IOF varies according to type of loan. We need to implement them.
You can override the default base IOF value. Example:
TaxEasy::Financial::Brazil::IOF.new(iof_day: 0.0038, iof_additional: 0.000050)
TODO
There's a lot of taxes to be implemented.
So feel free to contribute! \o/.
Contributing
- Fork the repository
- Create a branch
- Create a spec + code
- Open a Pull Request ;)