Skip to content

Commit

Permalink
fix: use periods parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Sep 2, 2024
1 parent 808d2aa commit 2750dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calculate/annualize.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ func AnnualizedArithmeticReturn(returnValues []float64, periods float64) float64
return 0
}
arithmeticReturn := stat.Mean(returnValues, nil)
return arithmeticReturn * PeriodsPerYear
return arithmeticReturn * periods
}

0 comments on commit 2750dcc

Please sign in to comment.