train-tax-calculator 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/train/tax/calculator.rb +1 -5
- data/lib/train/tax/calculator/version.rb +1 -1
- data/train-tax-calculator.gemspec +2 -2
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e75c2fa63da77c900496e7560a2d6527c4b44060
|
|
4
|
+
data.tar.gz: 668c9b05b5f7bedc7b5ad3342f4b45106fd0c793
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 697bc9288a0cd1556a3c94199eb96e7f10dc0558ef46e53de365c17eae16947ff278cbe219146ae71ff8a861eec710f712ee43588cf58f814e1dcec88bcff9b2
|
|
7
|
+
data.tar.gz: dbc755e9e52d489f6aabc6e6b943a5bc09820da4b116bee82921900c11fb37d32e19686cbea8f4c8b2943faf3622a652494d92dd880884aaba6b12ab02f85f29
|
data/README.md
CHANGED
data/lib/train/tax/calculator.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Train
|
|
|
15
15
|
hash[:pagibig] = for_pagibig(basic_salary)
|
|
16
16
|
hash[:total_deductions] = hash[:sss] + hash[:philhealth] + hash[:pagibig]
|
|
17
17
|
hash[:withholding_tax] = withholding_tax(basic_salary)
|
|
18
|
-
hash[:net_income] =
|
|
18
|
+
hash[:net_income] = basic_salary - hash[:withholding_tax]
|
|
19
19
|
|
|
20
20
|
hash
|
|
21
21
|
end
|
|
@@ -37,10 +37,6 @@ module Train
|
|
|
37
37
|
compute_withholding_for(taxable_income).round(2)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
def net_income(basic_salary)
|
|
41
|
-
basic_salary - withholding_tax(basic_salary)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
40
|
def compute_withholding_for(income)
|
|
45
41
|
if income >= HIGHEST_BRACKET
|
|
46
42
|
|
|
@@ -6,8 +6,8 @@ require "train/tax/calculator/version"
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "train-tax-calculator"
|
|
8
8
|
spec.version = Train::Tax::Calculator::VERSION
|
|
9
|
-
spec.authors = ["Mark Chavez"]
|
|
10
|
-
spec.email = ["markchav3z@gmail.com"]
|
|
9
|
+
spec.authors = ["Mark Chavez", "Christopher Celestial", "Beverly Monungolh", "Jean Marie Catibog"]
|
|
10
|
+
spec.email = ["markchav3z@gmail.com", "celestialchristopher@gmail.com", "beverlyamonungolh@gmail.com", "jeancatibog@gmail.com"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{TRAIN Tax Calculator for PH 2018}
|
|
13
13
|
spec.description = %q{Computes withholding tax and net income}
|
metadata
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: train-tax-calculator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Chavez
|
|
8
|
+
- Christopher Celestial
|
|
9
|
+
- Beverly Monungolh
|
|
10
|
+
- Jean Marie Catibog
|
|
8
11
|
autorequire:
|
|
9
12
|
bindir: exe
|
|
10
13
|
cert_chain: []
|
|
@@ -55,6 +58,9 @@ dependencies:
|
|
|
55
58
|
description: Computes withholding tax and net income
|
|
56
59
|
email:
|
|
57
60
|
- markchav3z@gmail.com
|
|
61
|
+
- celestialchristopher@gmail.com
|
|
62
|
+
- beverlyamonungolh@gmail.com
|
|
63
|
+
- jeancatibog@gmail.com
|
|
58
64
|
executables: []
|
|
59
65
|
extensions: []
|
|
60
66
|
extra_rdoc_files: []
|