Hi @ssinha,
To understand more on custom logic please feel free to have a look at the post discussed previously:
custom logic
Have a great day!