Based on 2017 Revenue Memorandum Circular No. 105-2017
- supports Daily, Weekly, Semi-monthly, and Monthly payroll periods
Add to your Gemfile:
gem 'philippines_withholdingtax', github: 'reiallenramos/philippines_withholdingtax'
WithholdingTaxCalculator.new(payroll_period: "daily", compensation_level: 9000).call
=> 2469.19
WithholdingTaxCalculator.new(payroll_period: "weekly", compensation_level: 1000000).call
=> 342500.05
WithholdingTaxCalculator.new(payroll_period: "semimonthly", compensation_level: 25000.2).call
=> 3333.3
WithholdingTaxCalculator.new(payroll_period: "monthly", compensation_level: 1234567.89).call
=> 399598.6414999999