formulas 0.1.1.4 → 0.1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/formulas.gemspec +1 -1
- data/lib/formulas/withholding_tax.rb +4 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d6fc2b5bb6cca7fd953251292a8c7a6ca875d9863baca8172e3a28b3adb9d4
|
4
|
+
data.tar.gz: 7ccc7609cf9eeb47e90997c9a119801c04a573c8ae7501726a4f9b56f6d0367f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ee13fdf52c560cda1700fb92e14c84759444bb2550504cdf2066a92fa273b6ee61ad701a3b3589d2a577b32274db66a9cefa0b57f4c64ba4ea74082d9028792
|
7
|
+
data.tar.gz: 3391896c0adc427c1edb1a568c8a4578df8ee339831fc4245ac45acb37b99a8b88fd7d76a1bc0e54c53446fa8aa3e4fbfea25ca3e4ec62616f4b07407451f724
|
data/formulas.gemspec
CHANGED
@@ -40,12 +40,11 @@ module Formulas
|
|
40
40
|
def annual_tax
|
41
41
|
annual_result = 0
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
annual_result += ((l - current[0][0]) * (current[1].to_f / 100))
|
47
|
-
end
|
43
|
+
@tax_rate[0..gross_pay_tax_index].each_with_index do |current, index|
|
44
|
+
l = (index == gross_pay_tax_index) ? annual_gross_pay : current[0][1]
|
45
|
+
annual_result += ((l - current[0][0]) * (current[1].to_f / 100))
|
48
46
|
end
|
47
|
+
|
49
48
|
annual_result
|
50
49
|
end
|
51
50
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formulas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- formulas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
82
|
+
rubygems_version: 3.1.2
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: formulas
|