Mail automation if condition

I want to download attachments and save in the folder each day with its date as folder name. I want to create the folder under conditional check:
We should have received 15 mails for the date and there should be 30 attachments

Note: The number of days might differ. Sometimes I might need to run the bot for 3 days mail received. So it should create folder according to the mail received date.

Can anyone provide the idea how to execute?

@h.then97

Welcome to forums

Check as below for your reference

Let me know if you are facing any issue

Hope this may help you

Thanks