Added an alert to show the final calculation to the user.