@piano_miles made the equation I just simplified the other blocks a little so it all runs in a single chain :)