Radio button doesn't calculate properly