Skip to content

The application takes your average salary for 12 months and the number of vacation days - it responds with the amount of vacation pay that the employee will receive.

License

Notifications You must be signed in to change notification settings

KepLer100500/Vacation-Pay-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Калькулятор отпускных

Usage

For test:

curl -X GET "http://localhost:8989/api/v1/calculate?averageSalary=60000&vacationDays=7&startDate=2024-03-04&endDate=2024-03-10" -u "user:neoflex"

{"totalPay":8191.126279863481}

curl -X GET "http://localhost:8989/api/v1/calculate?averageSalary=60000&vacationDays=7" -u "user:neoflex"

{"totalPay":14334.470989761092}

For prod:

curl -X GET "http://kepler-developer.ru:8989/api/v1/calculate?averageSalary=60000&vacationDays=7&startDate=2024-03-04&endDate=2024-03-10" -u "user:neoflex"

{"totalPay":8191.126279863481}

curl -X GET "http://kepler-developer.ru:8989/api/v1/calculate?averageSalary=60000&vacationDays=7" -u "user:neoflex"

{"totalPay":14334.470989761092}

About

The application takes your average salary for 12 months and the number of vacation days - it responds with the amount of vacation pay that the employee will receive.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages