earned_value_calculator 0.1.3 → 0.1.6

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: abc295be4a92970116aa504f4fc6709b1b3b6e2c5a9ae565d1eea071809a87d7
4
- data.tar.gz: a187eafb85c3d0eec3f2cd8b01d69973ff5b2d4e9aa54167e7cf46d783a6f6ca
3
+ metadata.gz: 282753d17fd72a70a964352e581332325544ff22b9a4411516fc94d7913503da
4
+ data.tar.gz: 42e798d3a173e165e6cbe7341b2fb97dcd6ddb3f2e183ed6a6a0bec9ffd7425b
5
5
  SHA512:
6
- metadata.gz: e8a897fef8c456df01aeb0b9aea9ddf04733246062e9a51dd2997b154667a8bc3617413efcf4dd00604ccafdb5bf51befb84fbfc5e3b80411cfab7e1cbde44b9
7
- data.tar.gz: a0a30f1edbc06344cb74a995e55567c8284c1d3cb9f228d0397578acf935b0a41c41b44a6b373ea5dc71480153c546ad3e23475f386f28efb48954e43e073f2b
6
+ metadata.gz: 1759105bcea8fbc2e3c57bef9e5c7ca81b5f64351f74bb74effd4702a3c9432279c9debc2ae6a5f2d22a686c84c023c908476d1ab9fe97cda6691762bf51da54
7
+ data.tar.gz: f2bdc2e70024d610ab09c6db6e5b5e2db4e54fd4307a80b4db35ae9be2202160c437e1372cd5527fd9b903dbdcd3bf6e4b3f8aada5e06c21439fc764f0e37b31
data/CHANGELOG.md CHANGED
@@ -15,3 +15,11 @@
15
15
  ## [0.1.3] - 2022-04-23
16
16
 
17
17
  - Downward ruby version
18
+
19
+ ## [0.1.5] - 2022-04-23
20
+
21
+ - Fix calculates schedule variance
22
+
23
+ ## [0.1.6] - 2022-06-27
24
+
25
+ - Equipment some calculate the value
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # EarnedValueCalculator
1
+ # Earned Value Calculator
2
2
 
3
3
  ![Ruby](https://img.shields.io/badge/Ruby-CC342D?style=for-the-badge&logo=ruby&logoColor=white)
4
4
  [![Gem Version](https://badge.fury.io/rb/earned_value_calculator.svg)](https://badge.fury.io/rb/earned_value_calculator)
@@ -6,11 +6,13 @@
6
6
  [![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop-hq/rubocop)
7
7
  [![CircleCI](https://circleci.com/gh/routeflags/earned_value_calculator/tree/main.svg?style=svg)](https://circleci.com/gh/routeflags/earned_value_calculator/tree/main)
8
8
 
9
+ ![evm](https://user-images.githubusercontent.com/25024587/168343238-894f5ab6-daba-4a22-a8a3-665ad5abf062.png)
10
+
9
11
  Calculates the earned value of a project to indicate a diagnosis result.
10
12
 
11
13
  ## What is Earned value management ?
12
14
 
13
- Earned value management (EVM),is a project management technique for measuring project performance and progress in an objective manner from [Earned value management - Wikipedia](https://en.wikipedia.org/wiki/Earned_value_management).
15
+ Earned value management (EVM) is a project management technique for measuring project performance and progress in an objective manner by [Earned value management - Wikipedia](https://en.wikipedia.org/wiki/Earned_value_management).
14
16
 
15
17
  ## Installation
16
18
 
@@ -83,6 +85,20 @@ It is based on the formula:
83
85
 
84
86
  SPI = EV ÷ PV
85
87
 
88
+ #### estimate_at_completion (EAC)
89
+ It is based on the formula:
90
+
91
+ EAC = AC + (BAC - EV) ÷ CPI = AC + ETC
92
+
93
+ #### estimate_to_completion (ETC)
94
+ It is based on the formula:
95
+
96
+ ETC = (BAC - EV) ÷ CPI = EAC - AC
97
+
98
+ #### variance_at_completion (VAC)
99
+ It is based on the formula:
100
+
101
+ VAC = BAC - EAC
86
102
 
87
103
  ## Development
88
104
 
@@ -125,3 +141,4 @@ Everyone interacting in the EarnedValueCalculator project's codebases, issue tra
125
141
 
126
142
  * [Earned value management - Wikipedia](https://en.wikipedia.org/wiki/Earned_value_management)
127
143
  * [Online Equation Editor - standalone](https://www.codecogs.com/latex/eqneditor.php)
144
+ * [Ahmed Shabana (@ahmedmshabana) | Unsplash Photo Community](https://unsplash.com/photos/ADa9bb3tqR4)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EarnedValueCalculator
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.6"
5
5
  end
@@ -33,7 +33,16 @@ module EarnedValueCalculator
33
33
  :cost_performance_index,
34
34
  # It is based on the formula:
35
35
  # SPI = EV ÷ PV
36
- :schedule_performance_index
36
+ :schedule_performance_index,
37
+ # It is based on the formula:
38
+ # EAC = AC + (BAC - EV) ÷ CPI = AC + ETC
39
+ :estimate_at_completion,
40
+ # It is based on the formula:
41
+ # ETC = (BAC - EV) ÷ CPI = EAC - AC
42
+ :estimate_to_completion,
43
+ # It is based on the formula:
44
+ # VAC = BAC - EAC
45
+ :variance_at_completion
37
46
 
38
47
  # @param [Date] start_date The project start date.
39
48
  # @param [Date] end_date The project deadline.
@@ -59,10 +68,13 @@ module EarnedValueCalculator
59
68
  def calculate_earned_values
60
69
  @earned_value = (@budget * (@rate.to_f / 100)).to_i
61
70
  @planned_value = (@budget * @current_length / @project_length.to_f).to_i
62
- @schedule_variance = @planned_value - @earned_value
63
- @actual_cost_variance = @actual_cost - @earned_value
71
+ @schedule_variance = @earned_value - @planned_value
72
+ @actual_cost_variance = @earned_value - @actual_cost
64
73
  @cost_performance_index = @earned_value.to_f / @actual_cost
65
74
  @schedule_performance_index = @earned_value.to_f / @planned_value
75
+ @estimate_at_completion = @actual_cost + (@budget - @planned_value) / @cost_performance_index
76
+ @estimate_to_completion = @estimate_at_completion - @actual_cost
77
+ @variance_at_completion = @budget - @estimate_at_completion
66
78
  end
67
79
  end
68
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earned_value_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - smapira
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-23 00:00:00.000000000 Z
11
+ date: 2022-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -150,7 +150,7 @@ metadata:
150
150
  homepage_uri: https://github.com/routeflags/earned_value_calculator
151
151
  source_code_uri: https://github.com/routeflags/earned_value_calculator
152
152
  changelog_uri: https://github.com/routeflags/earned_value_calculator/blob/main/CHANGELOG.md
153
- post_install_message:
153
+ post_install_message:
154
154
  rdoc_options: []
155
155
  require_paths:
156
156
  - lib
@@ -165,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.3.3
169
- signing_key:
168
+ rubygems_version: 3.1.2
169
+ signing_key:
170
170
  specification_version: 4
171
171
  summary: Calculate the earned value of a project
172
172
  test_files: []