|
|
|
@ -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 = () => {
|
|
|
|
|
<div class="p-1">
|
|
|
|
|
<div class="flex justify-between">
|
|
|
|
|
<span>Gewichtete Story Points:</span>
|
|
|
|
|
{new Big(calculatorQuantity())
|
|
|
|
|
.div(agileCalculator.hoursPerPoint)
|
|
|
|
|
.toNumber()}{" "}
|
|
|
|
|
SP
|
|
|
|
|
{calculatorQuantity()} SP
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="p-1 font-mono text-sm text-right">
|
|
|
|
|
<span title="Gewichtete Story Points" class="text-title-border">
|
|
|
|
|
{new Big(calculatorQuantity())
|
|
|
|
|
.div(agileCalculator.hoursPerPoint)
|
|
|
|
|
.toNumber()}{" "}
|
|
|
|
|
SP
|
|
|
|
|
{calculatorQuantity()} SP
|
|
|
|
|
</span>{" "}
|
|
|
|
|
*{" "}
|
|
|
|
|
<span title="Stunden pro Story Point" class="text-title-border">
|
|
|
|
@ -137,7 +131,10 @@ const AgileCalculator: Component = () => {
|
|
|
|
|
<div class="flex justify-between">
|
|
|
|
|
<span>Gesamtpreis:</span>
|
|
|
|
|
{formatAmount(
|
|
|
|
|
calculatorQuantity() * agileCalculator.singlePrice
|
|
|
|
|
new Big(calculatorQuantity())
|
|
|
|
|
.mul(agileCalculator.hoursPerPoint)
|
|
|
|
|
.mul(agileCalculator.singlePrice)
|
|
|
|
|
.toNumber()
|
|
|
|
|
)}{" "}
|
|
|
|
|
CHF
|
|
|
|
|
</div>
|
|
|
|
|