Convert.ToInt32 and int.Parse are only suitable if you know the text can be converted to an int, as you are working with user input you don't know if it is valid, so use int.TryParse instead.
int R = 0;
int I = 0;
if (!int.TryParse(textBox4.Text.Trim(), out R))
{
R = 0;
}
if (!int.TryParse(textBox5.Text.Trim(), out I))
{
I = 0;
}
int E = R * I;