Automatic timeline move when moving items in group

Hello Monday Team!

I have been trying to create an automation which allows me to add an item from one group to another and then automatically shift the date using the duration column + the end date of the item above it.