You forgot to stop executing your method after displaying a message box:
if (puttext.Text.Length == 0 || basetext.Text.Length==0 ) { MessageBox.Show(" Enter Values for Base Stolen and Putouts "); return; }
In addition, when converting strings to double, be sure to specify the culture. The Windows Phone application will be run by users around the world, and some countries use different decimal separators. For instance:
basestolen = Convert.ToDouble(basetext.Text, CultureInfo.InvariantCulture);
source share