P5.js code for creating a calculator tip app confused

Hey so I seem to have gotten the images to work now but I want to be able to calculate the tip given a rating (percentage) like if the service was bad or good so I made a function for the calculations and in brackets next to ‘button.mousepressed’ I wrote calculation meaning the function for the actual calculation part but I keep on getting this error that’s not picking up the calculation part.