Added auto calculation when value changed

Added auto calculation when value changed