I could not find any documentation that tells you what account should be made to validate the DV of the Federal Savings Bank, does anyone know which account is to be made or where do I find this information?
I was able to find all the other benches except the box.
Based on the information that @aa_sp has passed, so is the account.
public String getDVContaCaixaEconomicaFederal(String agencia, String conta)
{
int[] multiplicadores = {8,7,6,5,4,3,2,9,8,7,6,5,4,3,2};
int soma = 0;
String numero = agencia + conta;
for (int i = 0; (i < (numero.Length) && i < (multiplicadores.Length)); i++)
soma += (int.Parse(numero.Substring(i, 1)) * multiplicadores[i]);
int dac = soma * 10;
int m = ((dac / 11) * 11);
int dv = dac - m;
if (dv == 10)
dv = 0;
return dv.ToString();
}