Calculate Business Days · BEP not working properly

Hi everyone, hope you’re doing well

I neep a little help with obtaining working days (excluding weekends and holidays) for this project management app that I’m building. Currently I’m using the Calculate Business Days · BEP plugin, but I have also tried using the Air Date / Time Picker with no success.

My problem is: with the Calculate Business Days · BEP plugin I know I can set/choose between two dates and the plugin should return the working days, but for some reason it is not excluding the holidays.

So the set up is:
image
with Filtro_DiaDaSemana being the native date/time picker from bubble, because I need it to be a dynamic choice so the amount of working days gets updated in case there’s a holiday in the week I choose

So I inspected it to see if it is working with the dates I set up


(this is where I had problems with the air date/ time picker plugin, no matter what dates I’d choose the plugin wouldn’t update the date range)

But the thing is, when I jump to a week that has a holiday (May 1st) the amount of working days is still 5 days, when it should be 4

First I thought it could be the timezone, but it doesn’t work on Christmas week either, does anyone know how to fix this?

Thanks in advance

I checked the plugin page and it doesn’t say anything about the holidays (except the days you specifically set to be excluded, which is just some of the regular weekdays). How do you know it excludes holidays? Maybe you want more than the plugin promised.

1 Like

Apparently I thought it did exclude the holidays when trying on the demo page because I selected Monday as the first day of the range and it shows 4 business days on the 1st week of May

but if I select Sunday as the first day it still shows 5 business days

it seems I’ll be stuck with this problem for a while longer lol but thanks for pointing that out

1 Like