From d4cdf6919c7cef8b4b187726019063ebea2aec78 Mon Sep 17 00:00:00 2001 From: Gav Date: Sun, 9 Jul 2023 08:51:53 +0200 Subject: [PATCH] Correct example price setting algo --- text/0001-agile-coretime.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/text/0001-agile-coretime.md b/text/0001-agile-coretime.md index 9bffda1..72815d8 100644 --- a/text/0001-agile-coretime.md +++ b/text/0001-agile-coretime.md @@ -253,10 +253,10 @@ In general we would expect the price to increase the closer `CORES_SOLD` gets to A simple example of this would be the formula: ``` -NEW_PRICE := IF CORES_OLD < BULK_TARGET THEN - OLD_PRICE - OLD_PRICE / 2 * CORES_SOLD / BULK_TARGET +NEW_PRICE := IF CORES_SOLD < BULK_TARGET THEN + OLD_PRICE * MAX(CORES_SOLD, 1) / BULK_TARGET ELSE - OLD_PRICE + OLD_PRICE / 2 * + OLD_PRICE + OLD_PRICE * (CORES_SOLD - BULK_TARGET) / (BULK_LIMIT - BULK_TARGET) END IF ```