We calculate the basis using the price of a theoretical futures contract with a fixed number of days to expiration. A futures contract with the exact number of days to expiration may not exist in the market. Therefore, we calculate the price of a theoretical futures contract using a combination of the soonest to expire quarterly contract and and the subsequent quarterly contract.