email_calculation