Calculate resistance value and tolerance of resistors by their color codes (maintenance fork)