How can I conditionally subtract the lowest value when selected options is more than 4