How to determine resistor value calculation for common anode 7-segment display multiplexed?