Thought I had it,
but there is something fishy about the shifting i believe..

input1 = 50000 / 142
output1= input1 >> 2
input1= input1 * 10
output1 = output1 /10
input1 = input1 +output1

K