Fixed the math; it works now