Conditional operator and Math calculation