swap fields in calculator