This image illustrates the Data Model view of the query you create in the formula report that contains the two new formula columns.