Pass floor value as variable.

Better to pass the floor value as a variable to our summing method, rather than hard-coding it. This will allow us to experiment with different values in future if we want.
Update compute function to return data