Fixed the modeling equation and changed ints to floating point numbers to avoid division problem