Updated CalculateNumberOfPages with \ for integer division