# Identify weeks (Mon-Sun) from 2 dates and create new things automatically

**URL:** <https://forum.bubble.io/t/identify-weeks-mon-sun-from-2-dates-and-create-new-things-automatically/233743>\
**Category:** Database\
**Created:** [November 23, 2022, 1:46am UTC](https://forum.bubble.io/t/identify-weeks-mon-sun-from-2-dates-and-create-new-things-automatically/233743 "2022-11-23T01:46:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vennio](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@vennio](https://forum.bubble.io/u/vennio)\
**Post date:** [November 23, 2022, 1:46am UTC](https://forum.bubble.io/t/identify-weeks-mon-sun-from-2-dates-and-create-new-things-automatically/233743/1 "2022-11-23T01:46:51Z")

</div>

Hi,  
I have 3 Things - Project, Person, Resource Planning  
The business logic is when I create a new Project, I’ll assign People to work on the project, and I’ll calculate cost & profitability through Resource Planning.

Long story short, I’d like the app to identify the weeks between the 2 dates, even if Project start date is Tuesday 08/11, the week would still start Monday 07/11, see examples below.  
If the range of start-end dates span across 3 weeks, I need 3 entries created (which I assume we’ll need the recurring event?).  
Is there a way to achieve this with a backend workflow without a plugin?

\*Projects have a start date and an end date  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/9/89138e6806a076d2fb53c40f7499663d84383a9d.png)

\*People have a daily rate (cost)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/0/a0067ec5311d2b305efce83d6869151692312fd9.png)

\*Resource Planning have the cost based on how many days they work through the week

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/5/f56983fd972b954c7f171392ac02aa371b1166db.png)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![bubble.trouble](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@bubble.trouble](https://forum.bubble.io/u/bubble.trouble)\
**Post date:** [November 23, 2022, 4:55pm UTC](https://forum.bubble.io/t/identify-weeks-mon-sun-from-2-dates-and-create-new-things-automatically/233743/2 "2022-11-23T16:55:20Z")

</div>

![Screenshot 2022-11-23 at 11.49.44 AM](https://us1.discourse-cdn.com/bubble/original/3X/7/4/745bbe0518781cc3d14b8d8604dc64b8f2ed57ed.png)

We use the above plugin to help us achieve similar functionality.

> Is there a way to achieve this with a backend workflow without a plugin?

Can you charge a credit card without using Stripe?
