title: I am developing employee payroll calculation, but it shows an error for Arithmetic operation resulted in an overflow
body: <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  Dim hr As Integer
  Dim pf As Integer
  Dim da As Integer
  Dim ta As Integer
  Dim net As Integer
  
   hr = Val((TextBox1.Text * 5.5) / 100)
   pf = Val((TextBox1.Text * 10.5) / 100)
   da = Val((TextBox1.Text * 6) / 100)
   ta = Val((TextBox1.Text * 3.5) / 100)
  
  TextBox2.Visible = True
  TextBox3.Visible = True
    TextBox4.Visible = True
   TextBox5.Visible = True
    TextBox6.Visible = True
  
     TextBox2.Text = hr
    TextBox3.Text = pf
     TextBox4.Text = da
    TextBox5.Text = ta
  
   net = Val(TextBox1.Text + TextBox2.Text + TextBox4.Text) - Val(TextBox3.Text + TextBox5.Text)
  
  TextBox6.Text = CLng(net)
  
  End Sub
  </code></pre>