The purpose of this program is to calculate the severance that would be due to a Colombian employee based on current law.
calculation = SeveranceCalculator.new(salary: 958_730, start_date: '2020-01-01', end_date: '2020-03-21')
logger.info(calculation.to_s)
Total severance due for 80 days worked at $958730:
Bonuses: 213051
Savings: 213051
Interest on savings: 5681
Vacation: 106525
Total: 538308
The method takes three parameters:
- Salary
- Start date (format: year-month-day Ex. 2020-07-20)
- End date (same format as above)
The only default parameter is:
- Salary: $877,803 COP (in USD)