tax_computation 0.2.3 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bed8fb848179435c30e8aa8fdac45fe3c320be4d2f4e9ad95bce36eaada72b6a
4
- data.tar.gz: 9534180a42d4b7e46f32a72bb10473697b67b38d19e696933277f64731e1f8c1
3
+ metadata.gz: 858eefab3ffb334427f138276fac40d29a726ea30958ddef35d77e9640c743ca
4
+ data.tar.gz: f9d74ebd14279493f4965f710119abc9ef94d510139eb81e6bdf54470a2ce82f
5
5
  SHA512:
6
- metadata.gz: 66361b620858ed12c16358e1cb4f5429d9e78a1baa30a3200ee3760b626201fc8d39e79d6581d9f854db1d60b7700fc54549579700b3577533e38216c653b9fd
7
- data.tar.gz: 894c7d71023c7e33cfd8d6f246f4ddc1e6c3fa30b9a81baaa36c82e343251d0bebbeee5d386546494e02ead11db581973caebc83883c6e53f43efe38198cd206
6
+ metadata.gz: 8d442a457f0100f9029e4b7ff0655a5b446ec61bccff4e3ccf6cc13448e9434ae8e80c477c928a705ace443acce9544626ff2c3278fa101514ebc0aab08941ec
7
+ data.tar.gz: 1ebc05ee3ff561eaee99c2db030ed4ec15668e8b6a57a75a882ceceb66ba31a9a534bf400b26d27822e779ba5ca1f9fb9fdf8005f398eec23f745c6321cdf832
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # TaxComputation
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/tax_computation`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Welcome! With this gem you can calculate the tax according to the new policy given by income tax department of Pakistan.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,17 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ To get the tax monthly
24
+
25
+ ```ruby
26
+ TaxComputation.calculate_monthly_tax(monthly_salary_amount) #it will return the tax monthly
27
+ ```
28
+
29
+ To get the tax yearly
30
+
31
+ ```ruby
32
+ TaxComputation.calculate_yearly_tax(yearly_salary_amount) #it will return the tax yearly
33
+ ```
26
34
 
27
35
  ## Development
28
36
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TaxComputation
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.7"
5
5
  end
@@ -13,7 +13,7 @@ module TaxComputation
13
13
  12000000.0...30000000.0 => {percentage: 27.5, fixed_amount: 2345000, low: 12000000},
14
14
  30000000.0...50000000.0 => {percentage: 30, fixed_amount: 7295000, low: 30000000},
15
15
  50000000.0...75000000.0 => {percentage: 32.5, fixed_amount: 13295000, low: 50000000},
16
- 75000000.0.. => {percentage: 35, fixed_amount: 21420000, low: 75000000}
16
+ 75000000.0..Float::INFINITY => {percentage: 35, fixed_amount: 21420000, low: 75000000}
17
17
  }
18
18
 
19
19
  private
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tax_computation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamza Alvi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-06 00:00:00.000000000 Z
11
+ date: 2021-10-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Write a longer description or delete this line.
14
14
  email:
@@ -28,6 +28,14 @@ files:
28
28
  - bin/setup
29
29
  - lib/tax_computation.rb
30
30
  - lib/tax_computation/version.rb
31
+ - tax_computation-0.1.0.gem
32
+ - tax_computation-0.1.1.gem
33
+ - tax_computation-0.2.0.gem
34
+ - tax_computation-0.2.1.gem
35
+ - tax_computation-0.2.2.gem
36
+ - tax_computation-0.2.3.gem
37
+ - tax_computation-0.2.4.gem
38
+ - tax_computation-0.2.5.gem
31
39
  - tax_computation.gemspec
32
40
  homepage:
33
41
  licenses: []