Skip to content

Commit

Permalink
Add WGUWU indicator value computing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Dec 15, 2024
1 parent 20e14e3 commit f2d0a07
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,14 @@ export class ImpactCalculator {
[INDICATOR_NAME_CODES.WC]: () => {
return rawData[INDICATOR_NAME_CODES.WC] * tonnage || 0;
},
[INDICATOR_NAME_CODES.WGUWU]: () => {
const waterWithdrawalValue: number =
rawData[INDICATOR_NAME_CODES.WW] * tonnage || 0;
return (
(rawData[INDICATOR_NAME_CODES.WGUWU] * waterWithdrawalValue) /
(100 * rawData.production) || 0
);
},
};

for (const [key, value] of Object.entries(calculations)) {
Expand Down

0 comments on commit f2d0a07

Please sign in to comment.