Example
const calculate = require('calculate-autonomo-irpf')
console.log(
calculate(32000)
)
Output:
{
"annualGross": 32000,
"net": {
"yearly": 24234.50,
"monthly": 2019.54,
"formatted": {
"yearly": "€24,234.50",
"monthly": "€2,019.54"
}
},
"totalIrpf": 7765.5,
"percentage": 24.27
}
See full example here