There's not one step that can do both of these, but it can be done with a combination of steps. Look at the Value mapper
, the Calculator
, and the Set field value
steps. For more complex calculations, there's the Formula
step, and if worse comes to worst, you can always fall back on the Modified Java Script Value
step.
Those steps should get you there. If you want a more exacting description, you'll have to post more detail about how your calculation works.