# Move task on the monday when it's saturday or sunday?

Hey Guys,

first time here. Airtable support forwarded me here. I need your help.

I have a such formula:

IF(
{routine type}=‘daily’,
IF(
{routine type}=‘weekly’,
IF(
{routine type}=‘bi-weekly’,
IF(
{routine type}=‘monthly’,
)
)
)
)

and I would like to combine it with something like this:

IF(
WEEKDAY({next date})=0,
DATEADD({next date}, 1, ‘days’),
IF(
WEEKDAY({next date})=6,
DATEADD({next date}, 2, ‘days’),
{next date}
)
)

Can you help me, please? The first formula creates new task depending on the routine type. Weekly routine, monthly routine, etc. The second formula should move the task to the Monday if the first formula lands task on the Saturday or Sunday.

Jack

Welcome to Airtable Community !

Can you please screenshot those fields so we can understand the relation between them? For example, where is the data for {next date} coming from?

Tip: When pasting a formula here, paste it in the Preformatted text as to make it easier to copy

Hey Mohamed,

thank you Of course. Here are the screenshots:

The formula would look something like that

``````IF(
{routine type}='daily',
IF(
{routine type}='weekly',
IF(
{routine type}='bi-weekly',
IF(
{routine type}='monthly',
)
)
)
)
``````

Hope this helps If it does, please mark it as Solution

You could simplify that a great deal with SWITCH()

``````IF(
AND({routine type}, {task date}),
I love you Guys! It works 