Calculation based on the total of another panel

It sounds like you are wanting to do simple math on two queries, correct? If yes, see this post.