calculate shard sizes properly