Python Value Does Not Decrease Meaning Math Problem