Skip to content

To calculate the payroll severance for Colombian employee in ruby

License

Notifications You must be signed in to change notification settings

jmvbxx/colombian_severance

Repository files navigation

Build Status Coverage Status

Colombian Severance

The purpose of this program is to calculate the severance that would be due to a Colombian employee based on current law.

Usage

calculation = SeveranceCalculator.new(salary: 958_730, start_date: '2020-01-01', end_date: '2020-03-21')
logger.info(calculation.to_s)

Output

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)

About

To calculate the payroll severance for Colombian employee in ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages