not 6% bpi growth per month
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user