... sorry by the double post... I forgot to say that my previous message and suggestion allows different speeds of input, since the PIC would "lock" and use the first button press and the "reference", so different persons could use it without any problem. To allow a nice margin of error, just use the rounding method before division. Wagner