Analog value - High, low and in between

Why are you acting on the values in calcVal and calc2Val (lousy names) BEFORE you calculate them?