Skip to content

Instantly share code, notes, and snippets.

@jorovipe97
Last active February 12, 2018 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorovipe97/8ec22ccdf0a987351630913a8439fcb8 to your computer and use it in GitHub Desktop.
Save jorovipe97/8ec22ccdf0a987351630913a8439fcb8 to your computer and use it in GitHub Desktop.
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