@Stefan,
Here’s a similar approach I worked through with another member on the forum a few months ago:
Hope this is helpful.