Added print into the if statement of the calculations