From 2750dccb9df6223b0960fe306a4b41c21ee5c4fc Mon Sep 17 00:00:00 2001 From: Chrstopher Hunter <8398225+crhntr@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:21:04 -0700 Subject: [PATCH] fix: use periods parameter --- calculate/annualize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculate/annualize.go b/calculate/annualize.go index 8177199..e064821 100644 --- a/calculate/annualize.go +++ b/calculate/annualize.go @@ -28,5 +28,5 @@ func AnnualizedArithmeticReturn(returnValues []float64, periods float64) float64 return 0 } arithmeticReturn := stat.Mean(returnValues, nil) - return arithmeticReturn * PeriodsPerYear + return arithmeticReturn * periods }