It needs floor() to get a whole number from the division. afiak PHP has no operator to do this so I used floor().