Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function volleyball([year, holidays, weekendsInRuse]) {
- holidays = Number(holidays);
- weekendsInRuse = Number(weekendsInRuse);
- if (year == "normal") {
- k = 1;
- } else {
- k = 1.15;
- }
- howMuchTimes = k*(holidays * (2/3) + weekendsInRuse + (48 - weekendsInRuse)*0.75);
- console.log(parseInt(howMuchTimes));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement