All that is left to do now is wrap the sendEmail method in an <a href="http://www.w3schools.com/js/js_if_else.asp" target="_blank" rel="noopener">if statement</a> to check if the user's balance minus the cost of the job is less than or equal to the value you want to use as your minimum