Added a console.log to test whether or not the calculation works.