add calc income and fix sendmail