fix bottle count being rounded twice

This commit is contained in:
leander committed 2026-10-31 00:10:45 +01:00
1 parent 519910b231
commit 4b0e3d42b9
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ const calculateLiters = (people: number, thirstyness: number) => {
};
const calculateBottles = (people: number, thirstyness: number) => {
return Math.ceil(calculateLiters(people, thirstyness) / 1.5);
return Math.ceil((people * thirstyness) / 1.5);
};
const calculatePizzaSlices = (people: number, hungriness: number) => {