Correctly calculate expression total as you type.