Live data from Hacker News

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

stretchmytimeoff.com

21–30 of 177 posts

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

#21
post #6

Awesome idea, some suggestions (to fit my use case) My annual leave resets on April 1st, so being able to change the year would be handy. I worked compressed hours (I have every Friday off) I can carry over 5 unused days to the next year, and buy 5 more days. This might impact what days I take off.

Thanks! I made options to change the year and leave balance, but not to change the first day of the year. Let me know if it still works if you enter the right number of days

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

#22
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

Also it would be great to be able to add "corporate" holidays, where the whole company is off because of X reason.

Thanks! Adding customisable fixed holiday days could be a nice idea :)

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

#24
This is pretty cool. I've organically done something similar for many years (i.e. tried to optimize leave to coincide with public holidays to get those extra long weekends.)

If you think it would be fun, maybe you could expose different algorithm choices for how to allocate the blocks?

Eg, I don't necessarily need to maximize the block lengths, but would like the holidays to be more evenly spread through the year. At the moment, it gives me a huge block around the easter period and another one week block later in the same month. And then, there are no holidays for an entire six months from the end of May to the start of November, despite several public holidays in between! I suggest an alternative algorithm would seek fewer one-week blocks and more long-weekend blocks, with some sort of pressure which penalizes blocks for being too close together?

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

#25
Nice work! I once launched stretchyourannualleave[dot]com on PH https://www.producthunt.com/products/stretch-your-annual-lea... and also here https://hn.algolia.com/?q=stretchyourannualleave

It'd be nice to have different options to maximise my annual leave. For example, if I have 10 days off + 13 public holidays, the website shows all combinations to maximise the number of days off work.

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

#26
I typically try to take annual leave and to travel exactly on the opposite dates to what this tool recommends. That's because I care more about avoiding the significant extra expense, traffic, and crowds of travel over public holiday periods, than I do about getting a few extra "free days" of leave. No free lunch!

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

#27
Looks like it doesn't handle year transitions nicely?

In NSW Australia, it shows 11 days between Dec 21 and Dec 31, but Jan 1 is a public holiday here and you capsule add Jan2&3 plus the following weekend to get 16 days 21 Dec 2024 through 5 Jan 2025.

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

#28
post #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 :)

Would be nice if I could add my own holidays instead of only remove them

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

#29
Ha, this reminds me of a very similar practice I used to engage in with a few buddies when we started work. It was always fun to try to figure out how to optimize the PTO to get the “most days per day”.

Nowadays, I find that the best time to take PTO is when I feel like taking PTO. Taking a long weekend when I’m feeling burnt out or disengaged goes much further for me than grinding for the entire first half of th year to get a week off for 4th of July. YMMV.

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

#30
post #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 :)

I would almost rather know how many 'blocks'I got off. Like, tell me how many 1 week chunks I get, how many 2 week chunks I get, etc.
Post reply on HN