Jump to content
Sign in to follow this  
guiesmeril

Formula inss e ir

Recommended Posts

Senhores, boa noite!!

 

Alguém tem alguma formula que faça o calculo do INNS e do IR? Se tiverem de 2021 ajudaria bastante! 

Share this post


Link to post
Share on other sites

Resolvido!!

 

Segue abaixo a formula para quem precisar:

/* INFORMAÇÕES REFERENTE AO INSS */
DECL FX1; /* FAIXA 1 DO DESCONTO INSS8 */
DECL FX2; /* FAIXA 2 DO DESCONTO INSS8 */
DECL FX3; /* FAIXA 3 DO DESCONTO INSS8 */
DECL FX4; /* FAIXA 4 DO DESCONTO INSS8 */
DECL FX5; /* FAIXA 5 DO DESCONTO INSS8 */
DECL SALINSS; /* SALARIO COM O DESCONTO DO INSS */

/*
FUNÇÃO CRIADA PARA ACHAR O VALOR DO DESCONTO DO INSS
*/

SE RC <= 1100 ENTAO  
    SETVAR (FX1,RC * 0.075) 
    
SENAO SE RC > 1100 AND RC <= 2203.48 ENTAO
    SETVAR (FX2,RC * 0.09 - 16.50)
    
SENAO SE RC > 2203.48 AND RC <= 3305.22 ENTAO  
    SETVAR (FX3,RC * 0.12 - 82.60)

    
SENAO SE RC > 3305.22  AND RC <= 6433.57 ENTAO
  SETVAR (FX4,RC * 0.14 - 148.71)
  
SENAO 
    SETVAR (FX5,751.97)
FIMSE FIMSE FIMSE FIMSE FIMSE

/*
FUNÇÃO CRIADA PARA ACHAR O LIQUIDO DO SALARIO COM O DESCONTO DO INSS
*/

SE FX1 <> 0 ENTAO
    SETVAR (SALINSS, RC - FX1)
    
SENAO SE FX2 <> 0 ENTAO    
    SETVAR (SALINSS, RC - FX2)

SENAO SE FX3 <> 0 ENTAO
    SETVAR (SALINSS, RC - FX3)

SENAO SE FX4 <> 0 ENTAO
    SETVAR (SALINSS, RC - FX4)

SENAO SE FX5 <> 0 ENTAO
    SETVAR (SALINSS, RC - FX5)
FIMSE FIMSE FIMSE FIMSE FIMSE

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.