equation for column J implemented