Facebook
From Felipe, 2 Months ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 42
  1. //IRPF
  2.         if (isNumber(v_vlr_remuneracao_bruta) <= 1903.98)
  3.         {
  4.                 v_irpf = isNumber(v_vlr_remuneracao_bruta)*0;
  5.         }
  6.         else if (isNumber(v_vlr_remuneracao_bruta) > 1903.98 && isNumber(v_vlr_remuneracao_bruta) <= 2826.65)
  7.         {
  8.                 v_irpf = (isNumber(v_vlr_remuneracao_bruta)*0.075)-142.80;
  9.         }
  10.         else if (isNumber(v_vlr_remuneracao_bruta) > 2826.65 && isNumber(v_vlr_remuneracao_bruta) <= 3751.05)
  11.         {
  12.                 v_irpf = (isNumber(v_vlr_remuneracao_bruta)*0.15)-354.80;
  13.         }
  14.         else if (isNumber(v_vlr_remuneracao_bruta) > 3751.05 && isNumber(v_vlr_remuneracao_bruta) <= 4664.68)
  15.         {
  16.                 v_irpf = (isNumber(v_vlr_remuneracao_bruta)*0.225)-636.13;
  17.         }
  18.         else if (isNumber(v_vlr_remuneracao_bruta) > 4664.68)
  19.         {
  20.                 v_irpf = (isNumber(v_vlr_remuneracao_bruta)*0.275)-869.36;
  21.         }
  22.         v_irpf = v_irpf.toFixed(2);