[FIX] remove ceil function in compute_qty