How can I assign calculation values and use them in a calculation?