diff --git a/index.html b/index.html index 6a3d808..5b8dd42 100644 --- a/index.html +++ b/index.html @@ -187,9 +187,8 @@ Thursday Friday Saturday - Week Min - Least Max - Week Max + Guaranteed Minimum + Potential Maximum AM diff --git a/js/predictions.js b/js/predictions.js index 8bb70c1..a253aa2 100644 --- a/js/predictions.js +++ b/js/predictions.js @@ -660,8 +660,7 @@ function analyze_possibilities(sell_prices, first_buy, previous_pattern) { weekMins.push(day.min); weekMaxes.push(day.max); } - poss.weekMin = Math.min(...weekMins); - poss.weekLeastMax = Math.max(...weekMins); + poss.weekGuaranteedMinimum = Math.max(...weekMins); poss.weekMax = Math.max(...weekMaxes); } diff --git a/js/scripts.js b/js/scripts.js index 025294c..a3c4915 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -139,7 +139,7 @@ const calculateOutput = function (data, first_buy, previous_pattern) { out_line += `${day.min}`; } } - out_line += `${poss.weekMin}${poss.weekLeastMax}${poss.weekMax}`; + out_line += `${poss.weekGuaranteedMinimum}${poss.weekMax}`; output_possibilities += out_line }