Change CeilToInt() to FloorToInt()