Get order's value in code

And if it’s fair, what is the easiest way you think?