[FIX] replaced ceil by more efficient integer division