Module: Train::Tax::Calculator::Philhealth
- Defined in:
- lib/train/tax/calculator/philhealth.rb
Constant Summary collapse
- MULTIPLIER =
2.75%
0.0275
Class Method Summary collapse
Class Method Details
.compute(salary) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/train/tax/calculator/philhealth.rb', line 8 def self.compute(salary) if salary <= 10_000.00 137.50 elsif salary <= 39_999.99 ((salary * MULTIPLIER) / 2).round(2) else 550.00 end end |