make calculation on enter or on change