So I need to do a few simple subtraction calculations in my script, however it is not quite so simple as it turns out, what am I doing wrong here?

```
x= dbo.collection("master").find({Process: "Process1"}).toArray(); //Query my Mongo database
s1 = Math.max.apply(null, x.map(o => o.NumberInt)); //narrow down query to find the correct number 
s2 = (s1-1); //minus 1 from the result to find next result
//s2 returns -Infinity

```

I am 100% sure that `s1` is an integer