Radio button calculation with condition