We were multiplying things in the wrong order and I couldn't figure out the bug, so I just refactored everything to make it make more sense. We are getting the right values now.