diff --git a/src/components/AgileCalculator.tsx b/src/components/AgileCalculator.tsx index 2573e49..232ef29 100644 --- a/src/components/AgileCalculator.tsx +++ b/src/components/AgileCalculator.tsx @@ -15,7 +15,7 @@ const AgileCalculator: Component = () => { }); const calculatorQuantity = createMemo(() => calculateAgileQuantity( - agileCalculator.hoursPerPoint, + 1, new Big(agileCalculator.risk).div(100).toNumber(), agileCalculator.minPoints, agileCalculator.maxPoints @@ -110,18 +110,12 @@ const AgileCalculator: Component = () => {
Gewichtete Story Points: - {new Big(calculatorQuantity()) - .div(agileCalculator.hoursPerPoint) - .toNumber()}{" "} - SP + {calculatorQuantity()} SP
- {new Big(calculatorQuantity()) - .div(agileCalculator.hoursPerPoint) - .toNumber()}{" "} - SP + {calculatorQuantity()} SP {" "} *{" "} @@ -137,7 +131,10 @@ const AgileCalculator: Component = () => {
Gesamtpreis: {formatAmount( - calculatorQuantity() * agileCalculator.singlePrice + new Big(calculatorQuantity()) + .mul(agileCalculator.hoursPerPoint) + .mul(agileCalculator.singlePrice) + .toNumber() )}{" "} CHF