Added if else statement

Created an if else that has three possible alerts for the user before
proceeding with the calculation.