Explanation of declaration of variables for calculation