Use (int), ceil() and remove useless brackets