Fix math bug

Fix math bug that prevented the equation from working.