not 6% bpi growth per month
parent
cc196dcbed
commit
78297a56a6
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue