Fixed an issue where my calculation was wrong