Dear Community,
I faced some challenge in doing the calculation which involving two table and would like to ask if anyone know how to convert the steps below to the alteryx workflow:

Many thanks in advance and appreciate if someone can share the workflow based on the sample data (attached below)