Replace if statement by ternary operator when formatting percentage and choosing icon increase/decrease