.@total = countitem(994); // total number of Item ID 994
.@exchg = .@total / 100; //Floored division of total by 100 (e.g. 256 / 100 = 2)
.@remain = .@total % 100; //Remainder (e.g. 256 / 100 has remainder of 56)
delitem 944,(.@total - .@remain); //Remove all but the remainder
getitem 990,.@exchg; //Get total number of item id 990 = to floored division of total 994 (e.g. 256 --> 2)
something like that