Consider moving inside the if block. Why bother with the calculation if you're not going to display it.