I added an alert statement to double check my initial calculations and to test the function.