Created conditional argument and calculation for variables to be compared in conditional.