-
-
Save parzibyte/47801e0a8ea78636aab322f9dc00e34f 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
// Realizar cálculos | |
double salarioBruto = pagoPorHora * horasTrabajadas; | |
// Calcular descuentos | |
double descuentoSeguroSocial = (porcentajeDescuentoSeguroSocial * salarioBruto) / 100; | |
double descuentoSeguroEducativo = (porcentajeDescuentoSeguroEducativo * salarioBruto) / 100; | |
double descuentoImpuestoRenta = (porcentajeDescuentoImpuestoRenta * salarioBruto) / 100; | |
// Total de deducciones | |
double totalDeducciones = descuentoSeguroSocial + descuentoSeguroEducativo + descuentoImpuestoRenta; | |
// Restamos al salario bruto | |
double sueldoNeto = salarioBruto - totalDeducciones; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment