Calculate expression