spinner output value calculation