Setting up the Calculation