Added alert

Added an alert that shows the user the result of the calculation.