Live data from Hacker News

Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

stretchmytimeoff.com

11–20 of 177 posts

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#11
Something is strange in the math for "Let's stretch your time off from X days to Y days"

I am in the US, and it says I have 11 days off. If I say I get 0 days off, it says: "Let's stretch your time off from 0 days to 18 days". It looks like it's counting the weekends prior to a holiday no matter what as a "bonus" day, which is a strange methodology to me. (I would expect that it would only count days that it performed some action to optimize, otherwise it's just table stakes)

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#12

Most companies don't take all public holidays; this ends up being primarily for Federal workers who do get each of those holidays. If you make a table of holidays and then check on/off those applicable, then have the algorithm fill back in as needed, that would be helpful.

Thanks for the feedback! ChatGPT and I made the change to hide individual holidays for a country per year, click "edit list" :)

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#13
post #4

If you add the ability to toggle days in various states this could be a really useful tool for me. Unfortunately I have family obligations that occur at various times in the year. Clickable cells that would change them from day/off or not could really help here.

Thanks! ChatGPT and I made the change for per-state support and to hide individual holidays each year :)

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#14
post #7

Cool project! Some regional feedback coming from Sweden - your source data set is not 100% in line with what most workers in Sweden will get. For example, 24 December, 31 December and Midsummer's Eve are not reflected as days off in this calendar.

Ah shame, I totally depend on the well maintained npm package date-holidays. But I guess it could use a PR! https://github.com/commenthol/date-holidays/blob/master/data...

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#15
post #9

This seems like the start of something handy, but isn't yet useful. As others have mentioned, which holidays a company offers will vary. But more than that, given a number of days off and a calendar year, this currently seems to output only 1 result, though of course there are a large number of ties (in terms of consecutive days not worked). The current tool doesn't allow the user to 'edit' or swap between 'equally g…

Thanks for your feedback! Indeed the algorithm only gives one result, as it tries to fill all gaps from smallest to biggest in the best way possible to create clusters.

Making it super customisable would be tough, as then it becomes just a personal calendar. Maybe showing the rankings transparently (3 options tied, choose which one wins) could be nice.

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#17

Like others have mentioned, being able to toggle which days are holidays would make this useful. I get (8) holidays each year: New Year’s Day, Memorial Day, July 4th, Labor Day, Thanksgiving, Black Friday, Christmas Eve, and Christmas Day. Two of my company holidays aren’t federal holidays, so being able to toggle arbitrary weekdays as holidays would also be useful. Also, sometimes holidays fall on the weekend and th…

Thanks for sharing! The option to toggle holidays on/off should be working. Being able to arbitrarily add a chosen day isn't there, you just need to +1 to your days off count and let the algorithm choose for you.

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#18

Something is strange in the math for "Let's stretch your time off from X days to Y days" I am in the US, and it says I have 11 days off. If I say I get 0 days off, it says: "Let's stretch your time off from 0 days to 18 days". It looks like it's counting the weekends prior to a holiday no matter what as a "bonus" day, which is a strange methodology to me. (I would expect that it would only count days that it performe…

Thanks, the count could indeed be improved. I left it as counting all clusters > 2 days as valid extra time off, so all 3 day weekends made from national holidays would be included. But of course it's over optimistic :)

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#19
post #16

Very cool! It would be helpful if you just made a list of holidays we could check off. Im going to use this!

Thanks so much! ChatGPT and I just added a quick feature to hide certain holidays from a particular year, stored in LocalStorage. Let me know if it works like you expect :)

Re: Show HN: Stretch My Time Off – An Algorithm to Optimize Your Vacation Days

#20
post #2

This is a great idea for something I typically do manually to plan around maximizing vacation time around when my kids have off. Would recommend being able to adjust the public holidays - for example: Juneteenth and Veterans day off were not days off of school+work. Other future improvements would be some kind of tie in for airfare - these are typically some of the most expensive times to fly. Love the idea

Thanks a lot, now there's a quick feature to toggle off certain holidays, I see most US don't get Veteran's day indeed. It should work now, per state as well
Post reply on HN