# Show your Vacations Space?

**URL:** https://community.fibery.io/t/show-your-vacations-space/1188
**Category:** Fibery Showcase
**Created:** [November 20, 2020, 2:41pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188 "2020-11-20T14:41:51Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![aprotasenya](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aprotasenya/32/1221_2.png) [@aprotasenya](https://community.fibery.io/u/aprotasenya)
#### Post date: [November 20, 2020, 2:41pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/1 "2020-11-20T14:41:51Z")

</div>

Hi all! 👋

I was wondering if someone could show their customized Vacations App, as I’m looking into the ways and ideas to make the standard one better.

I have basic usage concerns, like “how do I set the state holidays for everyone, how do I manage paid and unpaid leaves, how do I make formulas omit the weekends” – and I thought that everyone using it has probably dealt with these concerns in some way.

So I just wanted to ask: would someone want to show off their awesome customized Vacations App? 🙂

---

<div class="post-metadata">

### Author: ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)
#### Post date: [December 6, 2021, 2:13pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/2 "2021-12-06T14:13:02Z")

</div>

> [@aprotasenya](#):
>
> I have basic usage concerns, like “how do I set the state holidays for everyone, how do I manage paid and unpaid leaves, how do I make formulas omit the weekends” – and I thought that everyone using it has probably dealt with these concerns in some way.

@antoniokov Is working on these problems right now and I hope he will share the space soon.

---

<div class="post-metadata">

### Author: ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)
#### Post date: [December 6, 2021, 2:14pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/3 "2021-12-06T14:14:14Z")

</div>

BTW, here is the early MVP.

---

<div class="post-metadata">

### Author: ![aprotasenya](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aprotasenya/32/1221_2.png) [@aprotasenya](https://community.fibery.io/u/aprotasenya)
#### Post date: [December 6, 2021, 3:48pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/4 "2021-12-06T15:48:07Z")

</div>

Well, I’m tempted to re-type the arcane formulas by @Chr1sG right from the video right now!  
Thanks for sharing! @antoniokov, I’m looking forward to picking that baby up right off your hands! 🙂

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [December 6, 2021, 3:57pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/6 "2021-12-06T15:57:22Z")

</div>

S

```auto
If(WeekDayName(Dates.Start(),"dy") = "mon",0,If(WeekDayName(Dates.Start(),"dy") = "tue",1,If(WeekDayName(Dates.Start(),"dy") = "wed",2,If(WeekDayName(Dates.Start(),"dy") = "thu",3,If(WeekDayName(Dates.Start(),"dy") = "fri",4,If(WeekDayName(Dates.Start(),"dy") = "sat",5,6))))))

```

E

```auto
If(WeekDayName(Dates.End(),"dy") = "mon",6,If(WeekDayName(Dates.End(),"dy") = "tue",5,If(WeekDayName(Dates.End(),"dy") = "wed",4,If(WeekDayName(Dates.End(),"dy") = "thu",3,If(WeekDayName(Dates.End(),"dy") = "fri",2,If(WeekDayName(Dates.End(),"dy") = "sat",1,0))))))

```

Weekdays

```auto
(((((ToDays(Dates.End(false) - Dates.Start()) + S) + E) * 5) / 7) - If(S > 5,5,S)) - If(E < 3,0,E - 2)

```

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [December 6, 2021, 3:58pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/7 "2021-12-06T15:58:17Z")

</div>

We are considering adding a function to get the day as a number instead of text, which will make S and E much simpler 🙂

---

<div class="post-metadata">

### Author: ![aprotasenya](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aprotasenya/32/1221_2.png) [@aprotasenya](https://community.fibery.io/u/aprotasenya)
#### Post date: [December 6, 2021, 5:02pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/8 "2021-12-06T17:02:23Z")

</div>

Thanks a whole lot!

---

<div class="post-metadata">

### Author: ![Jean](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Jean](https://community.fibery.io/u/Jean)
#### Post date: [March 12, 2022, 12:29pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/9 "2022-03-12T12:29:07Z")

</div>

Can someone share a working template with holidays per country?

---

<div class="post-metadata">

### Author: ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)
#### Post date: [March 29, 2022, 5:57pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/10 "2022-03-29T17:57:11Z")

</div>

I believe @antoniokov can do it, since we have it in our company

---

<div class="post-metadata">

### Author: ![aprotasenya](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aprotasenya/32/1221_2.png) [@aprotasenya](https://community.fibery.io/u/aprotasenya)
#### Post date: [May 23, 2022, 8:54am UTC](https://community.fibery.io/t/show-your-vacations-space/1188/11 "2022-05-23T08:54:57Z")

</div>

I have finally implemented the MVP shown in the video here. But my Public Holidays have DateRange instead of a single Date. @Chr1sG @antoniokov any chance you have a solution for this case or can help me with the formula? It would be a massive help, it takes me a lot of time to construct something like that. 😅

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [May 23, 2022, 9:50am UTC](https://community.fibery.io/t/show-your-vacations-space/1188/12 "2022-05-23T09:50:21Z")

</div>

The formulas above are intended to work with a date range. They assume that the field name is ‘Dates’ but if you change that everywhere to whatever you’re calling your field, they should work fine.

e.g. change

```auto
If(WeekDayName(Dates.Start(),"dy") = "mon",0,If(WeekDayName(Dates.Start(),"dy") = "tue",1,If(WeekDayName(Dates.Start(),"dy") = "wed",2,If(WeekDayName(Dates.Start(),"dy") = "thu",3,If(WeekDayName(Dates.Start(),"dy") = "fri",4,If(WeekDayName(Dates.Start(),"dy") = "sat",5,6))))))

```

to

```auto
If(WeekDayName(YourFieldName.Start(),"dy") = "mon",0,If(WeekDayName(YourFieldName.Start(),"dy") = "tue",1,If(WeekDayName(YourFieldName.Start(),"dy") = "wed",2,If(WeekDayName(YourFieldName.Start(),"dy") = "thu",3,If(WeekDayName(YourFieldName.Start(),"dy") = "fri",4,If(WeekDayName(YourFieldName.Start(),"dy") = "sat",5,6))))))

```

and similarly for the other formulas.

---

<div class="post-metadata">

### Author: ![aprotasenya](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aprotasenya/32/1221_2.png) [@aprotasenya](https://community.fibery.io/u/aprotasenya)
#### Post date: [May 23, 2022, 3:23pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/13 "2022-05-23T15:23:22Z")

</div>

Thanks, Chris! But I’m not talking about the S & E formulas for the **Vacations** database. I’m talking about the date format for the **Public Holiday** database and the formula in Automation Rules that are used to connect **Public Holidays** to **Vacations**.

In Anton’s example above it is simply a `Date` (e.g. Public Holiday “Christmas” has a date of `25-12-2021`), and he performs simple comparison to know if the **Public Holiday** falls in any **vacation** ’s `DateRange`.

But my **Public Holidays** have `DateRanges` (e.g. Public Holiday “Christmas” has a date range of `25-12-2021 — 27-12-2021`).

Therefore **Public Holidays’** `DateRanges` have to be compared to **Vacations’** `DateRanges`, which I can’t wrap my head around fast enough. 🙂

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [May 23, 2022, 5:39pm UTC](https://community.fibery.io/t/show-your-vacations-space/1188/14 "2022-05-23T17:39:41Z")

</div>

I think Anton chose to make public holidays single dates because it is hard to calculate overlaps in date ranges.  
I think I recall there were also some challenges if a vacation/holiday date range spanned two years (e.g. 30th Dec - 2nd Jan).  
Anyway, I’m wondering why you are choosing not to use a single date field (and then define multiple holidays if the period is more than one day)?

---

<div class="post-metadata">

### Author: ![aprotasenya](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aprotasenya/32/1221_2.png) [@aprotasenya](https://community.fibery.io/u/aprotasenya)
#### Post date: [May 24, 2022, 7:51am UTC](https://community.fibery.io/t/show-your-vacations-space/1188/15 "2022-05-24T07:51:30Z")

</div>

I chose DateRanges because we use the term “Studio Holiday” instead of “Public Holiday” – and that also covers cases where we have a long holiday for the whole studio (say, Dec25-Jan10). I realize that having single dates works better because it works easier, but I really don’t like the idea of creating 16 one-day holidays. 😅

---

<div class="post-metadata">

### Author: ![antoniokov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/antoniokov/32/201_2.png) [@antoniokov](https://community.fibery.io/u/antoniokov)
#### Post date: [September 6, 2022, 8:53am UTC](https://community.fibery.io/t/show-your-vacations-space/1188/16 "2022-09-06T08:53:12Z")

</div>

I’m a bit late to the party but I hope this is still helpful 😅

I chose single-date public holidays to avoid dealing with partial overlaps:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/b/b5becc6e92a8b3bb7102411b8d4eb8ae37095a48.png)

I’m pretty sure we can upgrade the solution to support date range holidays, but the complexity would skyrocket. I’d use a spreadsheet to slice a range into single dates instead:  
 ![public-holidays-range-input-via-spreadsheet](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/5/5af37a7abe400ab6524dc99353fe15c2f0082cbf.gif)

It’s a once-in-a-year operation so it shouldn’t be much of a burden, even if dates shift. You can always add a container DB on top of the Public Holiday DB and set up an automation to move the holidays when their parent container moves.

---

<div class="post-metadata">

### Author: ![antoniokov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/antoniokov/32/201_2.png) [@antoniokov](https://community.fibery.io/u/antoniokov)
#### Post date: [September 6, 2022, 9:02am UTC](https://community.fibery.io/t/show-your-vacations-space/1188/17 "2022-09-06T09:02:04Z")

</div>

Nudged by this discussion as well as a few conversations with our dear customers, we’ve packed our vacation tracking solution into a proper template: [https://fibery.io/templates/vacations-pro](https://fibery.io/templates/vacations-pro).

On top of our regular [Vacations template](https://fibery.io/templates/vacations), this advanced template accounts for country-specific holidays and weekends. Hence, makes a report like the one we have on [Open Startup page](https://fibery.io/open-startup) possible:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/b/b50ab6e9068e5011f2dd3b94183dfc5af6d76e2a.png)

An overview:

[![](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/6/61017a1c3ceeb3c3e178882aa34eaac468ceb4bf.jpeg "Vacations Pro | Template Overview") ](https://www.youtube.com/watch?v=RGEZebGwL0A)

A behind-the-scenes video for total nerds:

[![](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/4/4fc702e49890bfe76b29782e7c1545da7eb8f3c5.jpeg "Vacations Pro | From scratch") ](https://www.youtube.com/watch?v=UC0hZZVxbJI)
