You are using ToString instead of ToString() I noticed.
Also in the steps where you are doing math, you should wrap with ToString().
For example:
public string GetVarianca(string varianca)
{
varianca = ((Beta-Alpha+1)*(Beta-Alpha+1)-1) / 12;
return varianca.ToString;
}
will not work, but this will:
public string GetVarianca(string varianca)
{
return (((Beta-Alpha+1)*(Beta-Alpha+1)-1) / 12).ToString();
}
Because you are implicitly converting the results of a math function to a string "varianca"
You should probably check that the result won't throw an Exception, too. This is just to get you started.