Last active
February 12, 2018 00:22
-
-
Save jorovipe97/8ec22ccdf0a987351630913a8439fcb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prestacionServicios(salario) | |
{ | |
var retencion = salario*0.11; | |
var montoGrabable = salario*0.4; | |
var pension = 0.165*montoGrabable; | |
var salud = 0.12*montoGrabable; | |
return (salario - retencion - pension - salud) | |
} | |
function contratoLaboral(salario) | |
{ | |
var pension = salario*0.04; | |
var salud = salario*0.04; | |
var salarioNeto = salario - pension - salud; | |
return { | |
'Salario Neto': salarioNeto, | |
'Salario Neto + Prima y cesantias': (salario*(1+0.176) - pension - salud) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment