math expression also allowed when editing an existing transaction