From 78297a56a6682b97b53f41de3a93a7f726eaf9c8 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Thu, 26 Oct 2023 07:32:49 -0600 Subject: [PATCH] not 6% bpi growth per month --- ledger/predict.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/predict.go b/ledger/predict.go index 3db8ade..5810c12 100644 --- a/ledger/predict.go +++ b/ledger/predict.go @@ -148,7 +148,7 @@ func BPIsWithFixedGrowthPrediction(bpis BPIs, window time.Duration, pattern stri for _, predictionTime := range predictionTimes(window) { k2 := predictionTime.Format("2006-01") was := last[currency] - was.v *= 1.0 + apy + was.v *= 1.0 + (apy / 12.0) result[currency][k2] = was.v last[currency] = was }